Open innv-imtinan opened 1 year ago
I was able to make it work, I think you're only missing the plugin CSS import and you have a typo, the option is called plugins
, not plugin
.
import "flatpickr/dist/flatpickr.min.css";
import "flatpickr/dist/plugins/monthSelect/style.css"; // <-----
import Flatpickr from 'react-flatpickr'
import monthSelectPlugin from "flatpickr/dist/plugins/monthSelect";
<Flatpickr
value={value}
onChange={onChange}
options={{
plugins: [new monthSelectPlugin()],
}}
/>
Zavan, is correct. I was able to make it work by using the plugins
instead plugin
. I think we should go ahead and close this issue since it is working as designed.