GhostCalendarGrid reference
Package: @ghostvue/vue. Status: experimental (stability policy).
Public GhostCalendarGrid component.
Generated from the component manifest. Edit the manifest or Vue source, then rebuild the docs.
Props
| Name | Type | Default | Required | Description |
|---|---|---|---|---|
as | GhostCalendarGridElement | "div" | No | Declared prop `as`. |
Emits
None declared.
Models
None declared.
Slots
| Name | Description |
|---|---|
cell | Replaces the content of every day cell; the cell keeps its role, state attributes, and accessible name. Without it, the cell shows `date.day`. Props: `date` is the day (render `date.day` for the number); `accessibleLabel` is the full localized date already used as the cell's `aria-label`, not the visible day; `disabled`, `selected`, `focused`, `today`, and `outsideMonth` report the cell's state, and `state` is its `data-state` value. `formattedDate` is a deprecated alias of `accessibleLabel`. |
default | Primary content. |
Slot props: cell
| Name | Type | Description |
|---|---|---|
accessibleLabel | string | Localized full date the cell uses as its accessible name (`aria-label`), such as "Sunday, November 29, 2026". The cell applies it itself; use it only to repeat the name elsewhere, such as a tooltip. It is not the visible day number. |
date | CalendarDate | Day this cell represents. Render `date.day` for the visible day number. |
disabled | boolean | The day cannot be selected: out of range, unavailable, outside the visible month, or the calendar is disabled. |
focused | boolean | The cell is the grid's roving focus target. |
formattedDate | string | **Deprecated:** same value as `accessibleLabel`, the accessible name, not the visible day. Use `accessibleLabel`, or `date.day` for the day number. Still passed; removal not before 1.0. |
outsideMonth | boolean | The day belongs to an adjacent month that fills the first or last week. |
selected | boolean | The day is selected or is a range start or end. |
state | GhostCalendarCellState | Selection state, also set as the cell's `data-state` attribute. |
today | boolean | The day matches the calendar's `today`. |
Slot props: default
None declared.
Exposed members
| Name | Type | Description |
|---|---|---|
blur | () => void | Exposed method `blur`. |
element | HTMLElement | null | Exposed property `element`. |
focus | (options?: FocusOptions) => void | Exposed method `focus`. |
Parts and data attributes
None declared.
CSS variables
None declared.
Accessibility
Role: generic. APG pattern: https://www.w3.org/WAI/ARIA/apg/.
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
None declared.