Skip to content

GhostDatePickerContent reference ​

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

Anchored modal dialog positioned next to the input, with a Close control, error summary, polite status, and the calendar by default. After logical close it stays mounted with data-state="closed", inert, and pointer-events: none only while its own CSS exit transition or animation runs (useGhostPresence), then unmounts; focus, dismissal, scroll lock, and background inert release immediately.

Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.

All component references

Props ​

NameTypeDefaultRequiredDescription
closeLabelstring"Close date picker"NoAccessible name of the built-in Close control.
endDateInstructionstring"Choose an end date"NoPolite instruction announced after the first range activation.
flipboolean | GhostPopoverFlipOptionstrueNoFlip to the opposite side when overflowing.
offsetboolean | GhostPopoverOffsetOptions4NoDistance or axis offsets between anchor and content.
placementPlacement"bottom-start"NoPreferred placement relative to the input (or trigger).
portalbooleantrueNoTeleport through `GhostPortal` when `true`; render inline when `false`.
portalToGhostPortalTarget"body"NoTeleport target when `portal` is `true`.
shiftboolean | GhostPopoverShiftOptionstrueNoShift along the cross axis to stay in view.
strategyStrategy"absolute"NoCSS positioning strategy.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultCalendar and optional help/error content. Defaults to `GhostDatePickerCalendar`.

Slot props: default ​

None declared.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullMounted picker surface element while open or exiting; null once unmounted.
focus(options?: FocusOptions) => voidExposed method `focus`.

Parts and data attributes ​

AttributeValueDescription
data-stateopenApplied on data-state while mounted and open.
data-stateclosedApplied on data-state while the surface plays its exit motion after logical close; the surface is also inert with inline pointer-events: none until it unmounts.

CSS variables ​

None declared.

Accessibility ​

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

Required ARIA attributes: aria-modal, aria-label.

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 ​

None declared.