GhostSelectTrigger reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed GhostSelectTrigger with the ghost-select-trigger surface. Takes its content width unless a GhostField or grid cell stretches it, or block is set.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
block | boolean | "false" | No | Fill the container's inline size via data-block. Without it the trigger takes its content width, except in a flex column such as GhostField, which stretches it. |
size | 'sm' | 'md' | 'lg' | "md" | No | Trigger height, minimum width, label size, and padding from `control.size.<size>`, matching a GhostButton or GhostInput of the same size. The open listbox does not change. The wrapper consumes size and does not forward it to a component `as` host. The default omits data-size so CSS can treat a missing hook as md. |
Emits
None declared.
Models
None declared.
Slots
None declared.
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 | trigger | ghost-select-trigger surface aligned to control tokens. |
data-state | block | data-block fills the container's inline size. |
data-size | sm, lg | Control size on the trigger. Absent for the default md size. |
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.
| 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.