Skip to content

GhostCalendarCell reference ​

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

Public GhostCalendarCell component.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
asGhostCalendarCellElement"button"NoDeclared prop `as`.
dateCalendarDate—YesDeclared prop `date`.

Emits ​

None declared.

Models ​

None declared.

Slots ​

NameDescription
defaultContent of this 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`.

Slot props: default ​

NameTypeDescription
accessibleLabelstringLocalized 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.
dateCalendarDateDay this cell represents. Render `date.day` for the visible day number.
disabledbooleanThe day cannot be selected: out of range, unavailable, outside the visible month, or the calendar is disabled.
focusedbooleanThe cell is the grid's roving focus target.
formattedDatestring**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.
outsideMonthbooleanThe day belongs to an adjacent month that fills the first or last week.
selectedbooleanThe day is selected or is a range start or end.
stateGhostCalendarCellStateSelection state, also set as the cell's `data-state` attribute.
todaybooleanThe day matches the calendar's `today`.

Exposed members ​

NameTypeDescription
blur() => voidExposed method `blur`.
elementHTMLElement | nullExposed property `element`.
focus(options?: FocusOptions) => voidExposed 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.

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.