Calendar

A date picker component that allows users to select dates and times. It's built on top of Vue Datepicker and provides a consistent look and feel with the rest of the UI components.

Props

The Calendar component accepts all the props listed in the official documentation. Vuil builds on top of this and customizes this with a few defaults:

NameDefaultType
autoApplytrueboolean
Automatically apply the selected date when clicking on a day
autoPositiontrueboolean
Automatically position the calendar popup
format'dd/MM/yyyy HH:mm'string
Format of the displayed date
monthNameFormat'long'string
Format of the month name in the header
expandfalseboolean
Makes the calendar input expand to full width
inlinefalseboolean
Renders the calendar inline instead of as a popup
darkBased on themeboolean
Enables dark mode for the calendar

Slots

NameAcceptsDescription
triggeranyCustom trigger element to open the calendar popup when clicked

Events

All events emitted by the component are described here in the official documentation.

Examples

Date Range Selection

Custom Trigger

Inline