OptionGroup allows the user to select one item from a restrictedcollection (usually 3 to 5 items).
View source codestring
The name of the OptionGroup
{ label: string; value: K; iconName?: "adjustments-horizontal" | "archive" | "arrow-down-tray" | "arrow-down" | "arrow-left-right" | "arrow-left" | "arrow-path" | "arrow-pointing-out" | ... 150 more ... | "wrench"; }[]
Options contained within the OptionGroup * If the key iconName is provided then the associated icon will be displayed instead of the label (and in this case the label will be used as an accessible attribute to describe the icon)
string | boolean
The current value
string
className for the element
boolean
Whether the OptionGroup should be disabled.
Default: falseboolean
Whether the OptionGroup is invalid.
ChangeEventHandler<HTMLInputElement>
Handler that is called when the value changes.