GhostField reference
Package: @ghostvue/themes. Status: experimental (stability policy).
Themed GhostField wrapper and re-exported field parts. Adds default vertical stack spacing for label, control, hint, and error under ghost-theme or ghost-themed-scope.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
id | string | — | No | Optional control id override. |
name | string | — | No | Canonical dot-path key associating this field with an ancestor GhostForm. |
disabled | boolean | false | No | Propagates disabled semantics to the control. |
invalid | boolean | — | No | Propagates invalid semantics; overrides ancestor form state when explicitly set. |
required | boolean | false | No | Propagates required semantics. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Field parts; same contract as the headless root. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
element | HTMLElement | null | Root grouping element after mount. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-part | root | Vertical stack on .ghost-field inside ghost-theme. |
data-part | label | Medium weight label text. |
data-part | description | Muted hint text. |
data-part | error | Danger-colored alert text. |
CSS variables
| Name | Description |
|---|---|
--ghost-space-stack-sm | Gap between field parts in the themed stack. |
--ghost-status-danger-fg | Error and required indicator color. |
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/textfield/.
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
field/billing-address
Group labelled inputs in a native fieldset and inspect the submitted address.
field/profile-settings
Form composition with required, invalid, textarea, and disabled GhostField rows.
field/checkbox
Toggle a weekly digest with a themed checkbox and its wrapping label.
field/themed
Default vertical spacing from @ghostvue/themes.