Array field
In the table page, an array field will look like this (with the options
prop)
In the create / edit page
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' },]