0.1.1 • Published 9 months ago

payload-cms-text-array v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

PayloadCMSTextArray

While working with payload CMS I did not find a field that could handle an array of strings. This was the inspiration to create this field myself and publish it so others could use it as well.

This package is a W.I.P.

To use this package import it and use it in a field like this:

import { TextArrayField, TextArrayCell } from 'payload-cms-text-array';

const Users: CollectionConfig = {
    slug: 'users',
    fields: [
        ...,
        {
            name: 'skills',
            type: 'text',
            admin: {
				components: {
					Field: TextArrayField,
					Cell: TextArrayCell
				}
			},
        }
    ]
}

Info

The component uses some custom classes and some classes from the dependency itself.

0.1.1

9 months ago

0.1.0

9 months ago