Skip to content

GhostSelect reference ​

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

Themed GhostSelect trigger and listbox surfaces using semantic --ghost-* tokens.

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

All component references

Props ​

None declared.

Emits ​

None declared.

Models ​

None declared.

Slots ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-parttriggerghost-select-trigger surface aligned to control tokens. Takes its content width, fills a GhostField, and fills any container with the trigger's block prop (data-block).
data-partvalueSelected label or placeholder; fills the trigger and ends long labels with an ellipsis.
data-partcontentElevated listbox panel, capped to the viewport width.
data-partoptionListbox row; long labels wrap.
data-stateplaceholderMuted value text while nothing is selected.
data-stateinvalidDanger border when the trigger has aria-invalid, from the root or a GhostField.
data-statedisabledDisabled action tokens on the trigger; disabled options are muted.
data-stateopenFocus ring on the trigger while the listbox is open; also shown on keyboard focus.
data-statecheckedMuted fill and medium weight on the selected option.

CSS variables ​

None declared.

Accessibility ​

Role: combobox. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/.

Required ARIA attributes: none.

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 ​

select/billing-preferences ​

Example source

Billing preferences

Billing form with a placeholder, a disabled option, long labels, field validation, and a disabled select.

Billing preferences

Changes apply from the next invoice for Analytical Engines.

select/alert-routing-form ​

Example source

Alert routing form

Themed native form: named selects with default values, a required escalation owner checked by native validation, Reset back to the defaults, and the submitted form data.

Alert routing

Decide who hears about checkout-service incidents.

select/multiple-labels ​

Example source

Multiple labels

Multiple-value GhostSelect with default comma-separated trigger text and a scoped GhostSelectValue summary slot.

DocumentationPerformanceNeeds triage

select/multiple-form ​

Example source

Multiple form and reset

Native form participation in multiple mode with FormData.getAll, required constraint validation, and reset.

Notification channels

Multiple values submit as repeated FormData entries and restore on reset.

select/themed ​

Example source

Themed

Rows-per-page and sort controls on @ghostvue/themes trigger and list tokens.

Sort by
Rows per page

select/size ​

Example source

Size

Small select trigger in a filter bar beside a small input and button.