EQWorks / lumen-labs

React library of basic components based on Tailwind CSS
https://eqworks.github.io/lumen-labs
5 stars 2 forks source link

Components Library: new date picker component #76

Closed sallkall closed 2 years ago

sallkall commented 2 years ago

🎯 Usage

🎭 Behaviour

🧩 Style Variations

πŸ’Ÿ Icons Used

πŸ”— Zeplin Link

πŸ”’ Attributes

Property Type Default Value Description
multiMonth boolean false Sets dropdown to multi-month mode, shows two months side-by-side
isRange boolean false Toggles between selecting a single date vs. a range of dates
date DateObject current_date Sets the date of the calendar, set to the current date if unconifgured
showConfirm boolean true Toggles between displaying the cancel and confirm buttons or not
monthYearMode string month-year \| year-only \| none Selects the mode to use for selecting month and year in the calendar. There are 3 modes: dropdown select month and year plus arrow controls, dropdown select year only arrow controls for month, and no dropdown arrow controls only.

πŸ” Design Preview

Date Picker