select
Options can be plain strings or { value, label } objects. Pass value to mark the current selection.
Please select a status
select({ name: 'role', label: 'Role', options: ['Admin', 'Editor', 'Viewer'], value: state.role })
select({
name: 'country',
label: 'Country',
options: [{ value: 'gb', label: 'United Kingdom' }, { value: 'us', label: 'United States' }],
value: state.country,
required: true,
})