Date Picker

The component offers an intuitive way for users to select dates from a calendar, users can easily navigate through months and years to pick specific dates.

view on GitHub
2024
thu, nov. 21
SoMoTuWeThFrSa

Disabled and Highlighted dates

Specify disabled and highlighted dates using objects or functions. based on DatesConfiguration interface

2024
thu, nov. 21
MoTuWeThFrSaSo
2024
thu, nov. 21
MoTuWeThFrSaSo

Year and Month pickers

A Year and month Picker is a user interface component that allows users to select a specific date from a list.

Integration

DatePicker is also easily integrated with the rest of Drocket components.

Internationalization

Drocket only supports Spanish and English at the moment. Custom languages may be added in the near future.

2024
jue, nov 21
Lumamijuvido
2024
thu, nov. 21
MoTuWeThFrSaSo

API Reference

Props

Explore the available props for the date picker component

PropertyDescriptionTypeDefault
landscape specifies the orientation of the componentbooleanfalse
colorApplies specified color to the component - supports only utility colors (for example primary or secondary) stringprimary
no-titlehide or show the headerbooleanfalse
only-yearchanges the behavior of the component to one of year selectionbooleanfalse
only-monthchanges the behavior of the component to one of month selectionbooleanfalse
close-on-changeIf the component is used within a dialog or menu, this property can be used to indicate that it automatically closes the window as soon as a date is selected.booleanfalse
model-valueThe v-model value of the component. Date|stringundefined
week-startday on which you want the week to startnumber {0...6}0
lngcomponent languageen | es'en'
icon-prevSets the icon for previous month/year button.Array<IconPath> IconPath string -
icon-nextSets the icon for next month/year button.Array<IconPath> IconPath string -
disabledis used to disable the desired dates using the DatesConfiguration interface DatesConfiguration{}
highlightedis used to highlight the desired dates using the DatesConfiguration interface DatesConfiguration{}
viewspecifies the initial mode of the calendar: day month or yeardatePickerViewTypeday -> 0

Events

NameType
update:modelValueDate | string
update:viewdatePickerViewType
click:dayDay

Slots

titleSlot for the component’s title content.
headerSlot for the component’s header content.

data types

You can import all data types used in the component from the path: drocket