Empty option label
Customize the label shown for optional select fields.
const schema = z.object({
choice: z.enum(['designer', 'dev']).optional(),
})
export default () => (
<SchemaForm schema={schema} emptyOptionLabel="Select one" />
)
const schema = z.object({
choice: z.enum(['designer', 'dev']).optional(),
})
export default () => (
<SchemaForm schema={schema} emptyOptionLabel="Select one" />
)