Skip to content

GhostCalendar reference ​

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

Headless calendar root for a locale-aware month grid. Manages single-date or range selection of CalendarDate values, the visible month, and min, max, and unavailable dates.

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

All component references

Props ​

NameTypeDefaultRequiredDescription
defaultValueGhostCalendarValue—NoDeclared prop `defaultValue`.
defaultVisibleMonthCalendarDate—NoDeclared prop `defaultVisibleMonth`.
disabledbooleanfalseNoDeclared prop `disabled`.
isDateDisabled((date: CalendarDate) => boolean)—NoDeclared prop `isDateDisabled`.
localestring"en-US"NoDeclared prop `locale`.
maxValueCalendarDate—NoDeclared prop `maxValue`.
minValueCalendarDate—NoDeclared prop `minValue`.
modelValueGhostCalendarValue | null—NoDeclared prop `modelValue`.
selectionModeGhostCalendarSelectionMode"single"NoDeclared prop `selectionMode`.
todayCalendarDate—NoDeclared prop `today`.
visibleMonthCalendarDate—NoDeclared prop `visibleMonth`.
weekStartsOnnumber—NoDeclared prop `weekStartsOn`.

Emits ​

NamePayloadDescription
selectCalendarDateEmitted as `select`.

Models ​

PropEventTypeDescription
modelValueupdate:modelValueGhostCalendarValue | nullv-model binding for `modelValue`.
visibleMonthupdate:visibleMonthCalendarDatev-model binding for `visibleMonth`.

Slots ​

NameDescription
defaultContainer content.

Slot props: default ​

NameTypeDescription
modelValueGhostCalendarValueSlot prop `modelValue`.
selectionModeGhostCalendarSelectionModeSlot prop `selectionMode`.
visibleMonthCalendarDateSlot prop `visibleMonth`.

Exposed members ​

NameTypeDescription
elementHTMLElement | nullRoot element after mount; null before mount.

Parts and data attributes ​

AttributeValueDescription
data-partrootNeutral content container.

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 ​

calendar/basic ​

Example source

Basic Headless

Single-date month grid with keyboard and pointer selection.

June 2024

SunMonTueWedThuFriSat

calendar/range ​

Example source

Range Headless

Inclusive range selection across a month grid.

June 2024

SunMonTueWedThuFriSat

calendar/controlled ​

Example source

Controlled Headless

Controlled month with min, max, and unavailable dates.

January 2024

SunMonTueWedThuFriSat

calendar/unselected ​

Example source

Unselected Headless

Roving focus starts on today when no value is set.

June 2024

SunMonTueWedThuFriSat

calendar/locale ​

Example source

Locale Headless

Monday week start with the en-GB locale.

June 2024

MonTueWedThuFriSatSun

calendar/themed ​

Example source

Themed

Styled calendar from @ghostvue/themes.

Release window

June 2024

SunMonTueWedThuFriSat
Selected date: 2024-06-18