Skip to content
v2.5.0
English
Русский
Documentation

Option

Option is the presentational selectable-row primitive reused by list-like controls.

Root Props

PropTypeDefault
selectedboolean—
Whether this option is currently selected.
childrenReactNode—
The content displayed for this option. Can include text, icons, or complex markup.
activeboolean—
Whether this option is the current target of keyboard navigation. The focus stays on the owner of the list, which points here with aria-activedescendant.
sizeOptionSize'md'
Size of the option for visual styling.
refRef<HTMLDivElement>—
Ref forwarded to the root div of the option.
disabledboolean—
Disables the entire Option.

Also accepts all <div> attributes.

Child Parts

  • None. Option is a single exported primitive.

Types

  • OptionProps
  • OptionSize

State Model

  • Option does not manage selection or focus lists by itself.
  • selected and active are presentational inputs from the parent pattern.