Getting StartedGetting StartedCalendar ExampleInput & Calendar ExampleStateThemingCompositionDate FrameworksLocalizationAnimatedGroupAnimatedMonthGroupCalendarCalendarProviderClickOutsideDayDayOfWeekHeaderHomeMonthMonthGroupPopperRootWeekWeekHeaderuseCalendarDispatchuseCalendarPropsuseCalendarStateuseDateAPIuseDateInputuseDateRangeInput
Components
Hooks
Getting Started
A Date Picker can consist of an input
and a Calendar
or just a Calendar
.
use-date-input
uses an adapter API so that it can be used with any date framework.
use-date-input
provides pre-made adapters for the most popular frameworks or you can write your own.
For date-fns users
yarn add date-fnsyarn add @use-date-input/coreyarn add @use-date-input/date-fns-adapteryarn add styled-components
For dayjs users
yarn add dayjsyarn add @use-date-input/coreyarn add @use-date-input/dayjs-adapteryarn add styled-components
For luxon users
yarn add luxonyarn add @use-date-input/coreyarn add @use-date-input/luxon-adapteryarn add styled-components
For moment users
yarn add momentyarn add @use-date-input/coreyarn add @use-date-input/moment-adapteryarn add styled-components
Calendar Example
A basic example of the Calendar
component.
2021
June
Su
Mo
Tu
We
Th
Fr
Sa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910
Input & Calendar Example
A basic example of the useDateInput
hook, linking an HTML input
and the Calendar
component.
2021
June
Su
Mo
Tu
We
Th
Fr
Sa
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910