>> Support Tailwind-Elements with a STAR
warning:
The use of this Starter is at your own risk and assumes basic knowledge of Vite, JavaScript and CSS preprocessors. We recommend creating custom versions of Tailwind-Elements and themes only for advanced developers.
npm install
npm start
npm run build
- Bundling and ES6+ Support via vite
- SASS Support via sass-loader
- Linting via eslint-loader
- Code Formatting via prettier
.
├── src
│ ├── js/
│ └── scss/
├── dist/
├── tailwind.config.cjs
├── vite.config.js
└── index.html
If you want to use the power of ES modules, import the component you need and init it with initTE
method
import { Carousel, initTE } from "tw-elements";
initTE({ Carousel });
If you are using an UMD format you can import the entire library:
import 'tw-elements';
To add Tailwind-Elements plugin, please add the following code to tailwind.config.cjs:
plugins: [require('tw-elements/dist/plugin.cjs')]