Payload is now completely free and open-source.
If you like what we're doing, stop by GitHub and give us a star!

Collapsible Field

Config

OptionDescription
label *A label to render within the header of the collapsible component.
fields *Array of field types to nest within this Collapsible.
adminAdmin-specific configuration. See the default field admin config for more details.

* An asterisk denotes that a property is required.

Example

collections/ExampleCollection.js

{
slug: 'example-collection',
fields: [
{
label: 'Header of collapsible goes here',
type: 'collapsible', // required
fields: [ // required
{
name: 'someTextField',
type: 'text',
required: true,
},
],
}
]
}
Next

Date Field

On this page
Edit this page on GitHub