- Run the following command to install the package;
npm install tw-elements
- Tailwind Elements is a plugin and should be included inside the tailwind.config.js file
module.exports = {
content: ['./src/**/*.{html,js}', './node_modules/tw-elements/dist/js/**/*.js'],
plugins: [
require('tw-elements/dist/plugin')
]
}
- Import js files
import 'tw-elements';