Skip to components
DEVELOPER REFERENCE · v4.0.0

OptionButton API

Props, callbacks and methods. Select an underlined type to explore its fields, allowed values and callback arguments.

OptionButton5 props0 callbacks0 methods

Props5

OptionButton props
NameTypeDescription
labelRequired
ComponentChildrenInspect type
Label content or accessible name for the component, as rendered by this control.
detailOptional
ComponentChildrenInspect type
Secondary content displayed beside the filter label.
selectedOptionalboolean | undefinedSelected value or selected-state flag; the declared type identifies which representation the control uses.
classNameOptionalstring | undefinedAdditional CSS classes applied to the component root.
detailClassNameOptionalstring | undefinedAdditional CSS classes for the detail part of the component.

Events and callbacks0

No component-specific events or callbacks.

Methods0

No component-specific imperative methods. Use props and callbacks to control this component.

Inherited HTML props and events327