interface OptionProps @formium/react

An interface for an option in a list, such as in a <select> or RadioGroup. The idea is that these props can be spread directly to an <option> or <Radio> element.

Props
disabled
boolean

Whether this option is non-interactive.

id
string

Unique identifier of the option

Required
label
string

Label text for this option. If omitted, value is used as the label.

Required
value
string | number

Value of this option.

Required

Build forms, without the tears.