Skip to content

GhostListboxOption reference ​

Package: @ghostvue/vue. Status: experimental (stability policy).

role="option" row (default <div>, <li> inside a ul / ol root). Renders aria-selected on every option, aria-disabled, and the roving tabindex. Must not contain buttons, links, or other focusable controls; use GhostDataGrid for rows with in-row controls.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
asstring"div"NoHost element. Use `li` inside a `ul` / `ol` root.
disabledbooleanfalseNoThe option cannot be focused or selected.
textValuestring—NoText used for typeahead; defaults to the trimmed text content.
valuestring—YesIdentity of the option. Unique within the root; `''` is unsupported.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultOption content; receives `selected`, `disabled`, `active`, and `focused`.

Slot props: default ​

NameTypeDescription
activebooleanThe option is the listbox's tab stop.
disabledbooleanSlot prop `disabled`.
focusedbooleanThe option holds DOM focus.
selectedbooleanSlot prop `selected`.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-partoptionrole="option" row rendered by GhostListboxOption.
data-statecheckeddata-state on a selected option.
data-disabledpresentPresent on a disabled option (own flag, root flag, or a duplicate value).
data-valuepresentThe option value string (free-form, so no fixed values are listed).

CSS variables ​

None declared.

Accessibility ​

Role: option. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/listbox/.

Required ARIA attributes: aria-selected.

Keyboard ​

None declared.

Verification ​

Each category is reviewed separately. Automated keyboard and axe results do not attest manual or assistive-technology review.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

None declared.