Nightly Panic Munchies


    1.0.0-alpha12 • Public • Published

    Tailwind Elements

    Collection of free, popular components like modal, dropdown, carousel, popover, cards, charts and many more.

    Tailwind Elements

    Tailwind Elements is a plugin that extends the functionality of the library with many interactive components.

    In some dynamic components (like dropdowns or modals) we add Font Awesome icons and custom JavaScript. However, they do not require any additional installation, all the necessary code is always included in the example and copied to any Tailwind project - it will work.

    Quick Start tutorial

    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. Tailwind 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/dist/js/**/*.js'],
      plugins: [require('tw-elements/dist/plugin')],
    1. Dynamic components will work after adding the js file:
    <script src="./TW-ELEMENTS-PATH/dist/js/index.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
    1. Install the dependencies (inside the project directory):
    npm install
    1. Run the app:
    npm start
    1. Publish when you're ready:
    mdb publish

    You can easily test Tailwind 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 rel="stylesheet" href="" />
    <link rel="stylesheet" href=";400;500;600;700&display=swap" />
    <link rel="stylesheet" href="" />
    <script src=""></script>
      tailwind.config = {
        theme: {
          extend: {
            fontFamily: {
              sans: ['Inter', 'sans-serif'],

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

    <script src=""></script>


    npm i tw-elements

    DownloadsWeekly Downloads






    Unpacked Size

    3.28 MB

    Total Files


    Last publish


    • rafalseifert
    • mako3577
    • trochonovitz
    • juujisai
    • shigure92
    • dwaju
    • mleciejewski
    • bwsky
    • ascensus
    • smolenski-mikolaj
    • mdbootstrap
    • fkappa
    • kwilk
    • aidzikowski
    • wojstan
    • gbujanski