import flatpickr from 'flatpickr', no style
See original GitHub issueimport flatpickr from 'flatpickr'
flatpickr('#demo')
work with webpack , but no style
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How do I load the CSS for flatpickr when I use npm to install it ...
I was able to install flatpickr via npm i flatpickr --save and properly import it into the JS code and use it via...
Read more >Flatpickr refuses to import styles - help - Meteor forums
Using blaze if you render this date/time picker the styles either don't work at all if using npm, or the “select” button disappears...
Read more >Getting Started - Flatpickr
If you're using a bundler, e.g. webpack , you'll need to import flatpickr. // commonjs const flatpickr = require("flatpickr"); // es modules are...
Read more >react-flatpickr - npm
Keep in mind that these are the styles from flatpickr package // See troubleshooting section in case you have problems importing the styles...
Read more >React Flatpickr Example Not Working (forked) - StackBlitz
Dependencies · import React, { useRef } from 'react'; · import './style.css'; · import Flatpickr from 'react-flatpickr'; · import 'flatpickr/dist/themes/ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
To make @ndberg’s suggestion work I had to remove the
.css
part:This should be added to the Documentation, add css with webpack