Skip to content

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.

All component references

Props ​

NameTypeDefaultRequiredDescription
idstring—NoOptional control id override.
namestring—NoCanonical dot-path key associating this field with an ancestor GhostForm.
disabledbooleanfalseNoPropagates disabled semantics to the control.
invalidboolean—NoPropagates invalid semantics; overrides ancestor form state when explicitly set.
requiredbooleanfalseNoPropagates required semantics.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultField parts; same contract as the headless root.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullRoot grouping element after mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootVertical stack on .ghost-field inside ghost-theme.
data-partlabelMedium weight label text.
data-partdescriptionMuted hint text.
data-parterrorDanger-colored alert text.

CSS variables ​

NameDescription
--ghost-space-stack-smGap between field parts in the themed stack.
--ghost-status-danger-fgError 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.

CategoryStatusEvidence
Automated keyboardNot reviewedNo declared key is mapped to a browser test yet.
Manual interactionNot reviewedNo review recorded.
Assistive technologyNot reviewedNo review recorded.

Examples ​

field/billing-address ​

Example source

Billing address

Group labelled inputs in a native fieldset and inspect the submitted address.

Billing address

Use the address on your invoice.

Include your apartment number.

Use the postal city name.

Example settings
Group a single radio question
Billing cadence

field/profile-settings ​

Example source

Workspace profile

Form composition with required, invalid, textarea, and disabled GhostField rows.

Workspace profile

Visible to members across shared projects and audit logs.

Enter an address like team@company.com.

field/checkbox ​

Example source

Wrapping checkbox

Toggle a weekly digest with a themed checkbox and its wrapping label.

field/themed ​

Example source

Themed stack

Default vertical spacing from @ghostvue/themes.