📅 Preact Flatpickr
Flatpicker component for Preact.
Getting Started
Install the package by running:
npm install --save preact-flatpickr
Example
;; { superprops thisstate = flatpickrConfig: 'weekNumbers': true } { return <div> <Flatpickr theme="dark" config=thisstateflatpickrConfig onChange= console> </Flatpickr> </div> ; }
API
Every Flatpickr configuration option is available.
You can check out every option here.
You can also set themes via the theme
attribute. Learn more about the options here.
License
- MIT
I'm new to Preact, so don't bite my head off. 😊