mdbootstrap/TW-Elements

𝙃π™ͺπ™œπ™š collection of Tailwind MIT licensed (free) components, sections and templates 😎

JavaScript

13,181

1,166 commits

updated Mar 27, 2026

See the code

README

TW Elements tw-elementsTotal Downloads Latest Release

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

  • 500+ UI components
  • 117+ design blocks
  • Dark mode support
  • Easy theming & customization
  • Simple, 1 minute install
  • Free for personal & commercial use

Get started with TW Elements now!


Table of Contents


Community

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

Thank you!


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.

Datepicker Dropdown Modal
DatepickerDropdownModal
Charts Tooltips Carousel
ChartsTooltipsCarousel
Accordion Tabs Stepper
AccordionTabsStepper
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
TimepickerFooterNavbar
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
AlertsAvatarBadges
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
Button groupButtonsCards
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
ChipsCollapseGallery
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
JumbotronLinkList group
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
NotificationsParagraphsPlaceholders
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
PopoverProgressRating
Tailwind Component Tailwind Component Tailwind Component
Scroll to topSocial buttonsSpinners
Tailwind Component Tailwind Component Tailwind Component
TimelineToastTooltip
Tailwind Component Tailwind Component Tailwind Component
VideoVideo carouselCheckbox
Tailwind Component Tailwind Component Tailwind Component
File inputInput groupLogin form
Tailwind Component Tailwind Component Tailwind Component
RadioRangeRegistration form
Tailwind Component Tailwind Component Tailwind Component
SearchSelectSwitch
Tailwind Component Tailwind Component Tailwind Component
TextareaTablesRipple
Tailwind Component Tailwind Component Tailwind Component
AnimationsMasksShadows
Tailwind Component Tailwind Component Tailwind Component
DatatablesLightboxRating
Tailwind Component Tailwind Component Logo Clouds
ScrollbarPopconfirmMore coming soon

Design blocks

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

Hero Pricing Call to action
HeroPricingCall to action
Features Contact News/blog
FeaturesContactNews/blog
Team Tabs Stepper
TeamStatsTestimonials
Content Newsletter Projects
ContentNewsletterProjects
Headers FAQ Logo Clouds
HeadersFAQLogo Clouds
Headers FAQ Logo Clouds
BannersMega MenuMore coming soon

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>
css
dashboard-templates
design-systems
front-end
frontend
front-end-development
html
javascript
material-design
tailwind
tailwind-admin
tailwind-css
tailwindcss
tailwindcss-plugin
tailwind-react
tailwind-template
tailwindui
tailwind-vue
ui-components
uikit

mdbootstrap/TW-Elements

𝙃π™ͺπ™œπ™š collection of Tailwind MIT licensed (free) components, sections and templates 😎

JavaScript

13,181

1,166 commits

updated Mar 27, 2026

See the code

README

TW Elements tw-elementsTotal Downloads Latest Release

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

  • 500+ UI components
  • 117+ design blocks
  • Dark mode support
  • Easy theming & customization
  • Simple, 1 minute install
  • Free for personal & commercial use

Get started with TW Elements now!


Table of Contents


Community

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

Thank you!


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.

Datepicker Dropdown Modal
DatepickerDropdownModal
Charts Tooltips Carousel
ChartsTooltipsCarousel
Accordion Tabs Stepper
AccordionTabsStepper
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
TimepickerFooterNavbar
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
AlertsAvatarBadges
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
Button groupButtonsCards
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
ChipsCollapseGallery
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
JumbotronLinkList group
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
NotificationsParagraphsPlaceholders
Tailwind CSS Time picker Tailwind CSS Tables Tailwind CSS Navbar
PopoverProgressRating
Tailwind Component Tailwind Component Tailwind Component
Scroll to topSocial buttonsSpinners
Tailwind Component Tailwind Component Tailwind Component
TimelineToastTooltip
Tailwind Component Tailwind Component Tailwind Component
VideoVideo carouselCheckbox
Tailwind Component Tailwind Component Tailwind Component
File inputInput groupLogin form
Tailwind Component Tailwind Component Tailwind Component
RadioRangeRegistration form
Tailwind Component Tailwind Component Tailwind Component
SearchSelectSwitch
Tailwind Component Tailwind Component Tailwind Component
TextareaTablesRipple
Tailwind Component Tailwind Component Tailwind Component
AnimationsMasksShadows
Tailwind Component Tailwind Component Tailwind Component
DatatablesLightboxRating
Tailwind Component Tailwind Component Logo Clouds
ScrollbarPopconfirmMore coming soon

Design blocks

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

Hero Pricing Call to action
HeroPricingCall to action
Features Contact News/blog
FeaturesContactNews/blog
Team Tabs Stepper
TeamStatsTestimonials
Content Newsletter Projects
ContentNewsletterProjects
Headers FAQ Logo Clouds
HeadersFAQLogo Clouds
Headers FAQ Logo Clouds
BannersMega MenuMore coming soon

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>
css
dashboard-templates
design-systems
front-end
frontend
front-end-development
html
javascript
material-design
tailwind
tailwind-admin
tailwind-css
tailwindcss
tailwindcss-plugin
tailwind-react
tailwind-template
tailwindui
tailwind-vue
ui-components
uikit

Project health

Latest release

2.0.0 Β· Mar 4, 2024

Releases this year

0

Significant stargazers

(top 24 of 50)

Jan Tojnar

206 followers Β· starred Jun 2015

Paul Jolly

711 followers Β· starred Sep 2017

shinnn

408 followers Β· starred Apr 2013

yongyu

47 followers Β· starred Sep 2019