Skip to content

GhostDatePicker reference ​

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

Themed GhostDatePicker root, inputs, trigger, and anchored modal surface using --ghost-* tokens. Sizes follow the shared control scale, which floors to 44px touch targets on coarse pointers.

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 ​

NameDescription
defaultDate picker parts composed by the consumer.

Slot props: default ​

None declared.

Exposed members ​

None declared.

Parts and data attributes ​

AttributeValueDescription
data-partinputThemed text field with .ghost-date-picker-input.
data-parttriggerThemed icon button with .ghost-date-picker-trigger.
data-partcontentElevated dialog surface with .ghost-date-picker-content; calendar parts inherit the calendar recipe.
data-stateopenTrigger data-state while the calendar is open.

CSS variables ​

NameDescription
--ghost-elevation-3-bgCalendar surface background.
--ghost-surface-bgInput background.
--ghost-border-dangerInvalid input border.

Accessibility ​

Role: dialog. APG pattern: https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/examples/datepicker-dialog/.

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 ​

date-picker/controlled ​

Example source

Controlled

Controlled value and open state with an explicit clear action.

Calendar closed

YYYY-MM-DD
2026-12-01

date-picker/validation ​

Example source

Validation and form reset

Required range with bounds, validateRange rejecting interior unavailable dates, native submit and reset.

Stay (required)YYYY-MM-DD
Not submitted

date-picker/form ​

Example source

Stay in a form

Date range inside GhostForm with a maximum stay; the picker's reason shows in the field error and blocks submit.

Stay (up to 14 nights)
YYYY-MM-DD
Not booked yet

date-picker/custom-format ​

Example source

Custom format and locale

Consumer parse and format callbacks for DD.MM.YYYY with an en-GB calendar.

DD.MM.YYYY

date-picker/rtl ​

Example source

Right-to-left

Date picker in an RTL container; arrow keys follow reading direction.

YYYY-MM-DD

date-picker/nested-dialog ​

Example source

Inside a dialog

Date picker in a modal dialog; Escape closes only the top layer.

date-picker/themed ​

Example source

Book a trip

Choose departure and return dates with a themed range picker and a labeled field for each endpoint.

Trip booking
YYYY-MM-DD