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.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
closeLabel | string | "Close date picker" | No | Accessible name of the built-in Close control. |
endDateInstruction | string | "Choose an end date" | No | Polite instruction announced after the first range activation. |
flip | boolean | GhostPopoverFlipOptions | true | No | Flip to the opposite side when overflowing. |
offset | boolean | GhostPopoverOffsetOptions | 4 | No | Distance or axis offsets between anchor and content. |
placement | Placement | "bottom-start" | No | Preferred placement relative to the input (or trigger). |
portal | boolean | true | No | Teleport through `GhostPortal` when `true`; render inline when `false`. |
portalTo | GhostPortalTarget | "body" | No | Teleport target when `portal` is `true`. |
shift | boolean | GhostPopoverShiftOptions | true | No | Shift along the cross axis to stay in view. |
strategy | Strategy | "absolute" | No | CSS positioning strategy. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
default | Calendar and optional help/error content. Defaults to `GhostDatePickerCalendar`. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Exposed method `blur`. |
element | HTMLElement | null | Mounted picker surface element while open or exiting; null once unmounted. |
focus | (options?: FocusOptions) => void | Exposed method `focus`. |
Parts and data attributes
| Attribute | Value | Description |
|---|---|---|
data-state | open | Applied on data-state while mounted and open. |
data-state | closed | Applied 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.
| 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.