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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | string | "div" | No | Host element. Use `li` inside a `ul` / `ol` root. |
disabled | boolean | false | No | The option cannot be focused or selected. |
textValue | string | — | No | Text used for typeahead; defaults to the trimmed text content. |
value | string | — | Yes | Identity of the option. Unique within the root; `''` is unsupported. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Option content; receives `selected`, `disabled`, `active`, and `focused`. |
Slot props: default
| Name | Type | Description |
|---|---|---|
active | boolean | The option is the listbox's tab stop. |
disabled | boolean | Slot prop `disabled`. |
focused | boolean | The option holds DOM focus. |
selected | boolean | Slot prop `selected`. |
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Exposed method `blur`. |
element | HTMLElement | null | Exposed property `element`. |
focus | (options?: FocusOptions) => void | Exposed method `focus`. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | option | role="option" row rendered by GhostListboxOption. |
data-state | checked | data-state on a selected option. |
data-disabled | present | Present on a disabled option (own flag, root flag, or a duplicate value). |
data-value | present | The 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.
| Category | Status | Evidence |
|---|---|---|
| Automated keyboard | Not reviewed | No declared key is mapped to a browser test yet. |
| Manual interaction | Not reviewed | No review recorded. |
| Assistive technology | Not reviewed | No review recorded. |
Examples
None declared.