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

Row Field

Config

OptionDescription
fields *Array of field types to nest within this Row.
adminAdmin-specific configuration excluding description, readOnly, and hidden. See the default field admin config for more details.

* An asterisk denotes that a property is required.

Example

collections/ExampleCollection.ts

import { CollectionConfig } from 'payload/types';
const ExampleCollection: CollectionConfig = {
slug: 'example-collection',
fields: [
{
type: 'row', // required
fields: [ // required
{
name: 'label',
type: 'text',
required: true,
admin: {
width: '50%',
},
},
{
name: 'value',
type: 'text',
required: true,
admin: {
width: '50%',
},
},
],
}
]
}
Next

Select Field

On this page
Edit this page on GitHub