GhostFileUploadTrigger reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Native button (type=button) that opens the file picker; the keyboard and assistive-technology control. Receives the root id and aria-describedby, sets aria-invalid when invalid, and inside GhostField composes aria-labelledby from the Field label and its own text unless the consumer names it.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
disabled | boolean | false | No | Disables this trigger only; combines with the root `disabled`. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Visible button text, for example Choose files. |
Slot props: default
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 | Picker button rendered by GhostFileUploadTrigger. |
data-state | invalid | Root is invalid. Wins over disabled. |
data-state | disabled | Root or trigger is disabled. |
CSS variables
None declared.
Accessibility
Role: button. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/button/.
Required ARIA attributes: none.
Keyboard
| Key | Action | Automated browser test |
|---|---|---|
Enter | Opens the native file picker. | Not reviewed |
Space | Opens the native file picker. | Not reviewed |
Tab | Moves to the trigger, then to each remove button in DOM order. | Not reviewed |
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.