Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Row Field

The Row Field is presentational-only and only affects the Admin Panel. By using it, you can arrange Fields next to each other horizontally.

Shows a row field in the Payload Admin Panel
Admin Panel screenshot of a Row field

To add a Row Field, set the type to row in your Field Config:

1
import type { Field } from 'payload'
2
3
export const MyRowField: Field = {
4
// ...
5
type: 'row',
6
fields: [
7
// ...
8
]
9
}

Config Options

OptionDescription
fields *Array of field types to nest within this Row.
adminAdmin-specific configuration excluding description, readOnly, and hidden. More details.
customExtension point for adding custom data (e.g. for plugins)

* An asterisk denotes that a property is required.

Example

collections/ExampleCollection.ts

1
import type { CollectionConfig } from 'payload'
2
3
export const ExampleCollection: CollectionConfig = {
4
slug: 'example-collection',
5
fields: [
6
{
7
type: 'row', // required
8
fields: [
9
// required
10
{
11
name: 'label',
12
type: 'text',
13
required: true,
14
admin: {
15
width: '50%',
16
},
17
},
18
{
19
name: 'value',
20
type: 'text',
21
required: true,
22
admin: {
23
width: '50%',
24
},
25
},
26
],
27
},
28
],
29
}
Next

Select Field