OptionGroup allows the user to select one item from a restrictedcollection (usually 3 to 5 items).
View source codestringThe 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 | booleanThe current value
stringclassName for the element
booleanWhether the OptionGroup should be disabled.
Default: falsebooleanWhether the OptionGroup is invalid.
ChangeEventHandler<HTMLInputElement>Handler that is called when the value changes.