Skip to content

Array field

In the table page, an array field will look like this (with the options prop)

field image

In the create / edit page

edit field image

Use the Array field when you have an array of values contained in one column in your database (e.g. text[] in postgres)

Config

options

An optionnal array of options for the form select component.

Can be an async function that returns the options

e.g.

const options = [
{ value: 'sun', label: 'Soleil' },
{ value: 'moon', label: 'Lune' },
]