Skip to content

Instantly share code, notes, and snippets.

@jonahgeek
Created February 14, 2023 07:38
Show Gist options
  • Save jonahgeek/d6b41d5848f967f3a58be1ff18c1eb5a to your computer and use it in GitHub Desktop.
Save jonahgeek/d6b41d5848f967f3a58be1ff18c1eb5a to your computer and use it in GitHub Desktop.
Install tailwind elements
  1. Run the following command to install the package;

npm install tw-elements

  1. 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')
  ]
}
  1. Import js files

import 'tw-elements';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment