Home

Awesome

TW Elements <img src="https://tecdn.b-cdn.net/img/logo/te-transparent-noshadows.webp" width="45" align="right" alt="tw-elements"><a href="https://www.npmjs.com/package/tw-elements"><img src="https://img.shields.io/npm/dt/tw-elements.svg" alt="Total Downloads"></a> <a href="https://github.com/mdbootstrap/TW-Elements/releases"><img src="https://img.shields.io/npm/v/tw-elements.svg" alt="Latest Release"></a> <a href="https://twitter.com/intent/tweet/?text=Thanks+@TWElement+for+creating+an+amazing+collection+of+open+source+components+for+@tailwindcss%20https://tw-elements.com/&hashtags=tailwindCSS,bootstrap,webdesign,javascript,100DaysOfCode,DevCommunity"><img src="https://img.shields.io/twitter/url/http/shields.io.svg?style=social&label=Let%20us%20know%20you%20were%20here%21&"></a>

TW Elements is a huge collection of free, interactive components for Tailwind CSS.

<table> <tbody> <tr> <td> <a href="https://tw-elements.com/" alt="TW Elements tutorials" rel="dofollow"> <img width="600" src="https://tecdn.b-cdn.net/img/components-big.jpg"> </a> </td> <td> <ul> <li>500+ UI components</li> <li>117+ design blocks</li> <li>Dark mode support</li> <li>Easy theming & customization</li> <li>Simple, 1 minute install</li> <li>Free for personal & commercial use</li> </ul> <p><b><a href="https://tw-elements.com/docs/standard/getting-started/quick-start/">Get started with TW Elements now!</a></b></p> </td> </tr> </tbody> </table>

Table of Contents


Community

If you want to help the project grow, start by simply sharing it with your peers!

Thank you!


Coming soon

Check out the upcoming features - make sure to join the waiting list in order to get early access!

<table> <tr> <td> <a href="https://tw-elements.com/docs/standard/builder/"> <img alt="Design blocks" src="https://mdbootstrap.com/img/tw-demo/drag-and-drop.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/templates/"> <img alt="Templates" src="https://mdbootstrap.com/img/tw-demo/templates.webp"> </a> </td> </tr> <tr> <td align="center"><b>Drag & drop builder</b></td> <td align="center"><b>Templates</b></td> </tr> </table>

Components

A collection of stunning components made with attention to the smallest details. Forms, cards, buttons, and hundreds of others – in TW Elements you will find all the essential elements necessary for every project.

<table> <tr> <td> <a href="https://tw-elements.com/docs/standard/forms/datepicker/"> <img alt="Datepicker" src="https://mdbootstrap.com/img/tw-demo/datepicker.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/dropdown/"> <img alt="Dropdown" src="https://mdbootstrap.com/img/tw-demo/dropdown.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/modal/"> <img alt="Modal" src="https://mdbootstrap.com/img/tw-demo/modal.webp"> </a> </td> </tr> <tr> <td align="center"><b>Datepicker</b></td> <td align="center"><b>Dropdown</b></td> <td align="center"><b>Modal</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/data/charts/"> <img alt="Charts" src="https://mdbootstrap.com/img/tw-demo/charts.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/tooltip/"> <img alt="Tooltips" src="https://mdbootstrap.com/img/tw-demo/tooltips-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/carousel/"> <img alt="Carousel" src="https://mdbootstrap.com/img/tw-demo/carousel.webp"> </a> </td> </tr> <tr> <td align="center"><b>Charts</b></td> <td align="center"><b>Tooltips</b></td> <td align="center"><b>Carousel</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/accordion/"> <img alt="Accordion" src="https://mdbootstrap.com/img/tw-demo/accordion.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/navigation/tabs/"> <img alt="Tabs" src="https://mdbootstrap.com/img/tw-demo/tabs.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/stepper/"> <img alt="Stepper" src="https://mdbootstrap.com/img/tw-demo/stepper.webp"> </a> </td> </tr> <tr> <td align="center"><b>Accordion</b></td> <td align="center"><b>Tabs</b></td> <td align="center"><b>Stepper</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/forms/timepicker/"> <img alt="Tailwind CSS Time picker" src="https://mdbootstrap.com/img/tw-demo/timepicker.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/navigation/footer/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/img/tw-demo/footer.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/navigation/navbar/"> <img alt="Tailwind CSS Navbar" src="https://mdbootstrap.com/img/tw-demo/navbar.webp"> </a> </td> </tr> <tr> <td align="center"><b>Timepicker</b></td> <td align="center"><b>Footer</b></td> <td align="center"><b>Navbar</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/alerts/"> <img alt="Tailwind CSS Time picker" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-pro/alert-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/avatar/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/avatar.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/badges/"> <img alt="Tailwind CSS Navbar" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/badge-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Alerts</b></td> <td align="center"><b>Avatar</b></td> <td align="center"><b>Badges</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/button-group/"> <img alt="Tailwind CSS Time picker" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/button-group-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/buttons/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/button-2.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/cards/"> <img alt="Tailwind CSS Navbar" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/card-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Button group</b></td> <td align="center"><b>Buttons</b></td> <td align="center"><b>Cards</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/chips/"> <img alt="Tailwind CSS Time picker" src="https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/standard/pro/demo-new/assets/images/chips.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/collapse/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/collapse-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/gallery/"> <img alt="Tailwind CSS Navbar" src="https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/standard/pro/demo-new/assets/images/lightbox.webp"> </a> </td> </tr> <tr> <td align="center"><b>Chips</b></td> <td align="center"><b>Collapse</b></td> <td align="center"><b>Gallery</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/jumbotron/"> <img alt="Tailwind CSS Time picker" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/header-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/link/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/link.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/listgroup/"> <img alt="Tailwind CSS Navbar" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/list-group-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Jumbotron</b></td> <td align="center"><b>Link</b></td> <td align="center"><b>List group</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/notifications/"> <img alt="Tailwind CSS Time picker" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/notification.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/paragraphs/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/paragraphs.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/placeholders/"> <img alt="Tailwind CSS Navbar" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/placeholder-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Notifications</b></td> <td align="center"><b>Paragraphs</b></td> <td align="center"><b>Placeholders</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/popover/"> <img alt="Tailwind CSS Time picker" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/popover-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/progress/"> <img alt="Tailwind CSS Tables" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/progress-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/rating/"> <img alt="Tailwind CSS Navbar" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-pro/rating-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Popover</b></td> <td align="center"><b>Progress</b></td> <td align="center"><b>Rating</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/scroll-back-to-top-button/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/scroll-back-to-top.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/social-buttons/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/social-media.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/spinners/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/spinner-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Scroll to top</b></td> <td align="center"><b>Social buttons</b></td> <td align="center"><b>Spinners</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/timeline/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/timeline.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/toast/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-pro/toast-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/tooltip/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/tooltip-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Timeline</b></td> <td align="center"><b>Toast</b></td> <td align="center"><b>Tooltip</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/components/video/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/video.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/video-carousel/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/video-carousel.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/checkbox/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/checkbox-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Video</b></td> <td align="center"><b>Video carousel</b></td> <td align="center"><b>Checkbox</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/forms/file-input/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/file-upload.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/input-group/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/input-group.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/login-form/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/login-form.webp"> </a> </td> </tr> <tr> <td align="center"><b>File input</b></td> <td align="center"><b>Input group</b></td> <td align="center"><b>Login form</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/forms/radio/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/radio-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/range/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/range-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/registration-form/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/registration-form.webp"> </a> </td> </tr> <tr> <td align="center"><b>Radio</b></td> <td align="center"><b>Range</b></td> <td align="center"><b>Registration form</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/forms/search/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/search-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/select/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-pro/select-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/forms/switch/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/switch.webp"> </a> </td> </tr> <tr> <td align="center"><b>Search</b></td> <td align="center"><b>Select</b></td> <td align="center"><b>Switch</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/forms/textarea/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/textarea.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/data/tables/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/table-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/methods/ripple/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/ripple.webp"> </a> </td> </tr> <tr> <td align="center"><b>Textarea</b></td> <td align="center"><b>Tables</b></td> <td align="center"><b>Ripple</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/content-styles/animations/"> <img alt="Tailwind Component" src="https://mdbcdn.b-cdn.net/wp-content/themes/mdbootstrap4/content/en/_mdb5/standard/pro/demo-new/assets/images/animations2.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/content-styles/mask/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/mask-1.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/content-styles/shadows/"> <img alt="Tailwind Component" src="https://mdbootstrap.com/docs/standard/pro/demo/assets/images/components-free/shadow-1.webp"> </a> </td> </tr> <tr> <td align="center"><b>Animations</b></td> <td align="center"><b>Masks</b></td> <td align="center"><b>Shadows</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/data/datatables/"> <img alt="Tailwind Component" src="https://mdbcdn.b-cdn.net/docs/standard/pro/demo/assets/images/datatable.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/lightbox/"> <img alt="Tailwind Component" src="https://mdbcdn.b-cdn.net/docs/standard/pro/demo/assets/images/lightbox.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/rating/"> <img alt="Tailwind Component" src="https://mdbcdn.b-cdn.net/docs/standard/pro/demo/assets/images/rating.webp"> </a> </td> </tr> <tr> <td align="center"><b>Datatables</b></td> <td align="center"><b>Lightbox</b></td> <td align="center"><b>Rating</b></td> </tr> <!--New row--> <tr> <td> <a href="https://tw-elements.com/docs/standard/methods/scrollbar/"> <img alt="Tailwind Component" src="https://mdbcdn.b-cdn.net/docs/standard/pro/demo/assets/images/scrollbar.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/components/popconfirm/"> <img alt="Tailwind Component" src="https://mdbcdn.b-cdn.net/docs/standard/pro/demo/assets/images/popconfirm.webp"> </a> </td> <td> <a href="https://tw-elements.com/"> <img alt="Logo Clouds" src="https://mdbootstrap.com/img/tw-demo/design-blocks.webp"> </a> </td> </tr> <tr> <td align="center"><b>Scrollbar</b></td> <td align="center"><b>Popconfirm</b></td> <td align="center"><b>More coming soon</b></td> </tr> </table>

Design blocks

Responsive Landing page blocks built with Tailwind CSS. Plenty of design blocks examples such as Teams, services, projects, faq, and many more.

<table> <tr> <td> <a href="https://tw-elements.com/docs/standard/designblocks/hero-sections/"> <img alt="Hero" src="https://mdbootstrap.com/img/tw-demo/hero.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/pricing/"> <img alt="Pricing" src="https://mdbootstrap.com/img/tw-demo/pricing.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/cta/"> <img alt="Call to action" src="https://mdbootstrap.com/img/tw-demo/cta.webp"> </a> </td> </tr> <tr> <td align="center"><b>Hero</b></td> <td align="center"><b>Pricing</b></td> <td align="center"><b>Call to action</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/designblocks/features/"> <img alt="Features" src="https://mdbootstrap.com/img/tw-demo/features.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/contact/"> <img alt="Contact" src="https://mdbootstrap.com/img/tw-demo/contact.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/news/"> <img alt="News/blog" src="https://mdbootstrap.com/img/tw-demo/news.webp"> </a> </td> </tr> <tr> <td align="center"><b>Features</b></td> <td align="center"><b>Contact</b></td> <td align="center"><b>News/blog</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/designblocks/team/"> <img alt="Team" src="https://mdbootstrap.com/img/tw-demo/team.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/stats/"> <img alt="Tabs" src="https://mdbootstrap.com/img/tw-demo/stats.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/testimonials/"> <img alt="Stepper" src="https://mdbootstrap.com/img/tw-demo/testimonials.webp"> </a> </td> </tr> <tr> <td align="center"><b>Team</b></td> <td align="center"><b>Stats</b></td> <td align="center"><b>Testimonials</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/designblocks/content/"> <img alt="Content" src="https://mdbootstrap.com/img/tw-demo/content.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/newsletter/"> <img alt="Newsletter" src="https://mdbootstrap.com/img/tw-demo/newsletter.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/project-sections/"> <img alt="Projects" src="https://mdbootstrap.com/img/tw-demo/projects.webp"> </a> </td> </tr> <tr> <td align="center"><b>Content</b></td> <td align="center"><b>Newsletter</b></td> <td align="center"><b>Projects</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/designblocks/headers/"> <img alt="Headers" src="https://mdbootstrap.com/img/tw-demo/headers.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/faq/"> <img alt="FAQ" src="https://mdbootstrap.com/img/tw-demo/faq.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/logo-clouds/"> <img alt="Logo Clouds" src="https://mdbootstrap.com/img/tw-demo/logo-clouds.webp"> </a> </td> </tr> <tr> <td align="center"><b>Headers</b></td> <td align="center"><b>FAQ</b></td> <td align="center"><b>Logo Clouds</b></td> </tr> <tr> <td> <a href="https://tw-elements.com/docs/standard/designblocks/banners/"> <img alt="Headers" src="https://mdbootstrap.com/img/tw-demo/banners.webp"> </a> </td> <td> <a href="https://tw-elements.com/docs/standard/designblocks/mega-menu/"> <img alt="FAQ" src="https://mdbootstrap.com/img/tw-demo/mega-menu.webp"> </a> </td> <td> <a href="https://tw-elements.com/"> <img alt="Logo Clouds" src="https://mdbootstrap.com/img/tw-demo/design-blocks.webp"> </a> </td> </tr> <tr> <td align="center"><b>Banners</b></td> <td align="center"><b>Mega Menu</b></td> <td align="center"><b>More coming soon</b></td> </tr> </table>

Integrations

TW Elements integrations with popular technologies.


Installation

NPM
  1. Before starting the project make sure to install Node.js (LTS) and TailwindCSS.

  2. Run the following command to install the package via NPM:

npm install tw-elements
  1. TW Elements is a plugin and should be included inside the tailwind.config.js file. It is also recommended to extend the content array with a js file that loads dynamic component classes:
module.exports = {
  content: ["./src/**/*.{html,js}", "./node_modules/tw-elements/js/**/*.js"],
  plugins: [require("tw-elements/plugin.cjs")],
  darkMode: "class",
};
  1. Dynamic components will work after adding the js file:
<script src="./TW-ELEMENTS-PATH/js/tw-elements.umd.min.js"></script>

Alternatively, you can import it in the following way (bundler version):

import 'tw-elements';
MDB GO / CLI

Create, deploy and host anything with a single command.

  1. To start using MDB GO / CLI install it with one command:
npm install -g mdb-cli
  1. Log into the CLI using your MDB account:
mdb login
  1. Initialize a project and choose Tailwind Elements from the list:
mdb init tailwind-elements-free
  1. Install the dependencies (inside the project directory):
npm install
  1. Run the app:
npm start
  1. Publish when you're ready:
mdb publish
CDN

You can easily test TW Elements by adding CDN scripts to your classic HTML template without the need for installing any packages.

Add the stylesheet files below in the head section:

<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,900&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/tw-elements/css/tw-elements.min.css" />
<script src="https://cdn.tailwindcss.com"></script>
<script>
  tailwind.config = {
    darkMode: "class",
    theme: {
      fontFamily: {
        sans: ["Roboto", "sans-serif"],
        body: ["Roboto", "sans-serif"],
        mono: ["ui-monospace", "monospace"],
      },
    },
    corePlugins: {
      preflight: false,
    },
  };
</script>

Require the js bundled file right before the body closing tag:

<script src="https://cdn.jsdelivr.net/npm/tw-elements/js/tw-elements.umd.min.js"></script>