Date picker

Date pickers are used to select or edit dates and display date related information. Date pickers can be used both as an expandable element when clicked, or by having the calendar part always visible. Read more about date pickers in the UX Guidelines.

Use when

  • To display date related information
  • The user needs to select a date
  • The user needs to edit a date

Design

On this page you can find multiple types of date picker VUE.js component and the style variants:

With input

An input with a simple dropdown/modal for selecting a date. Follow the code examplefrom below to get this date picker.

Inline date picker - one selection

This date picker can also be shown inline with the inline prop, input is removed. For this example you can seledct only one date. Follow the code example from below to get this date picker.

Inline date picker - range selection

For this example you can select a range of dates, it's an inline example, without an input. Follow the code example from below to get this date picker.

Date picker with range selection and input

For this example you can select a range of dates that will be displayed in the input. Follow the code example from below to get this date picker.

Month and year selection

Date picker variants

Date picker with fill cell and square borders for the calendar cells

Add .datepicker-square to the date picker wrapper.

or inline:

Date picker with only stroke cell and round borders for the calendar cells

Add .datepicker-stroke to the date picker wrapper.

Date picker with only stroke cell and square borders for the calendar cells

Add .datepicker-stroke and .datepicker-square to the date picker wrapper.