Skip to content
Agents tracked: 502 Releases (7d): 613 Agent status: 4 with issuesSince last limit reset: Claude 7d · Codex 5d For AI agents: Markdown Updated Nov 18, 2026

TW Elements

by MDB (mdbootstrap)

Tailwind CSS UI kit with components and 'design blocks' (hero, CTA, features, FAQ, contact, headers); free package MIT, Pro paid.

Website sections and blocks Code libraryminimalcorporate

GitHub repoWebsite
Color buttons, a text field, tabs, a question list with the first answer open, and a plan card, from docs examples rendered with the free package files only.
Made by AgentGid with tw-elements 2.0.0 (npm, free package; its ready-made CSS and UMD script). The free package is MIT licensed (License.txt in the package and the license page); the texts in the picture are our own.

2. Commercial use: tw-elements.com/pro

“In order to use TWE in your commercial projects without limitations, you need to purchase a commercial license”

The free MIT package is free for commercial use; the pricing page's FAQ reads stricter, see know.

tw-elements.com/pro

License checked Nov 9, 2026 against 2 official pages. Tap a verdict to see its source. How we checked Report an error

TW Elements: Tailwind buttons, tabs and pop-ups

TW Elements is a set of ready page parts for sites styled with Tailwind CSS, such as buttons, question lists, tabs, menus, form fields and pop-up windows. A small script makes them open and close. The free package is MIT licensed. A paid Pro version adds more parts and page sections.

Where you can use it

Question list on a landing page

Add questions whose answers fold open on click, with the first one open. It suits pricing pages and long contact forms.

Tabs on an account page

Split a settings or profile page into tabs such as Profile, Messages and Billing, so only one part shows at a time.

Pop-up windows in a bundled app

Show a confirm or sign-up window over the page. In an app built with a bundler, you load only the parts you use.

Sign-up and contact forms

Build forms with text, email and number fields whose labels sit inside the field and move up when the visitor types.

Ready page sections to start from

Browse hero, pricing, FAQ and contact sections as pictures, then open their code in the TW Elements online editor.

Admin pages in Django or Laravel Idea

Give server-made admin pages buttons, tabs and pop-ups that work from attributes in the HTML, without writing scripts.

TW Elements popularity

38 / 100
Gid Score, same scale as developer tools
13,196
GitHub stars
25.8K
npm downloads, last 7 days
+3.8% in 4 weeks
TW Elements: downloads per weeknpm, tw-elements 25,791
TW Elements: GitHub starsmdbootstrap/TW-Elements 13,196

Downloads from api.npmjs.org, stars from GitHub, checked Nov 17, 2026. How the Gid Score is calculated

How to start

Tell your AI assistant

“Install tw-elements 2.0.0 (the free MIT package) in this Tailwind v3 project, add its plugin and the node_modules/tw-elements/js path to tailwind.config.js, load js/tw-elements.umd.min.js, and build the FAQ list and the settings tabs from free components only.”

Or install it yourself. In a project with Node.js and Tailwind CSS (set up with a tailwind.config.js file), install the free package.

npm install tw-elements
Show codeStep 1 or Step 2

Add the plugin and the package's script folder to tailwind.config.js.

module.exports = {
  content: ["./src/**/*.{html,js}", "./node_modules/tw-elements/js/**/*.js"],
  plugins: [require("tw-elements/plugin.cjs")],
  darkMode: "class",
};

Mistakes to avoid

<script src="../node_modules/tw-elements/dist/js/tw-elements.umd.min.js"></script> (path from the quick start page)
<script src="../node_modules/tw-elements/js/tw-elements.umd.min.js"></script>

In version 2.0.0 the scripts are in js/ at the package root; there is no dist folder, so the docs path gives a missing file.

import { Datepicker, Chart } from "tw-elements"
Use only the free exports (Button, Carousel, Collapse, Dropdown, Input, Modal, Offcanvas, Popover, Ripple, ScrollSpy, Tab, Tooltip) or a separate date picker or chart library

The free 2.0.0 package does not contain them, although their docs pages say free download.

Linking only css/tw-elements.min.css and writing your own Tailwind classes next to the components
Run Tailwind with the plugin and the node_modules/tw-elements/js content path, so your own classes are built too

The ready-made CSS holds only the classes the components use; in our demo grid, gap-5 and p-5 had no effect.

Importing from "tw-elements" in a bundled app and expecting the data-twe-* attributes to work by themselves
Call initTWE with every component the page uses, for example initTWE({ Collapse, Modal, Ripple })

Only the UMD script starts components automatically; the ES build needs initTWE.

npm install -g mdb-cli, then mdb login
npm install tw-elements inside the project

The MDB CLI route installs a global tool and needs an MDB account; the plain package needs neither.

License

MIT (free package) license. The free package is MIT licensed, free for personal and paid projects, with no credit needed. The paid Pro version has its own license, which forbids sharing its code or putting it in public open-source projects.

Commercial use
With conditions

“In order to use TWE in your commercial projects without limitations, you need to purchase a commercial license” tw-elements.com/pro

Credit
Not needed

“No attribution required” tw-elements.com/license

Inside your app or game
Can ship inside your app

“Free packages are available under the MIT License.” tw-elements.com/license

Pass the files on to your users
Allowed

“Free packages are available under the MIT License.” tw-elements.com/license

AI training
Not stated
Bots and bulk downloads
Not stated

AllowedWith conditionsNot allowedNot stated or not checked yet

Is TW Elements free for commercial use? The full answer Not legal advice. Check the license page before you ship.

For your agent

License rules tell your agent what it may do with TW Elements. Paste them into your prompt or AGENTS.md.

License rules
- TW Elements (Website sections and blocks, UI kits and website templates). Tailwind CSS UI kit with components and 'design blocks' (hero, CTA, features, FAQ, contact, headers); free package MIT, Pro paid. Price: free tier; commercial use with conditions; no credit needed. Style: minimal, corporate.
  Connect: npm tw-elements.
  Get files: npm install tw-elements, then copy block HTML from tw-elements.com docs; no account for free parts (html).
  Not allowed: Some blocks/components are Pro only
  Rule: Keep the MIT copyright notice in the code if you redistribute it.
  Rule: No visible credit on the site is required by the licence.
  Rule: Check MDB's commercial terms before shipping a commercial product on the free package (the license page and Pro FAQ disagree).
  License: https://tw-elements.com/license/ (checked 2026-11-09; details: https://agentgid.com/assets/tw-elements/)
Can an agent use it by itself?
Yes.

Agent installs a package or loads it from a CDN.

Install
npm install tw-elements
How an agent gets files
npm install tw-elements, then copy block HTML from tw-elements.com docs; no account for free parts.

Formats: html

API, key or account
Not needed. Everything runs on your side.
MCP server
None found
Credit line, if you want one
UI components: TW Elements (MIT)
This card for machines

Alternatives

TW Elements This page

Free tier With conditions npm

Tailblocks

Pick Tailblocks for free MIT page sections you copy as HTML, with no script or package to install.

Free Commercial OK Download

Uiverse

Pick Uiverse for small community-made buttons, cards, loaders and toggles in HTML and Tailwind, all MIT.

Free Commercial OK Download

Bootstrap Examples

Pick the official Bootstrap examples if your site uses Bootstrap rather than Tailwind CSS.

Free Commercial OK npm

Float UI

Free Tailwind CSS components and sections (heroes, pricing, CTA, footers, navbars) plus a few templates, with code for HTML, React, Vue and Svelte.

Free Commercial OK Download

Tailark (open-source blocks)

shadcn/ui marketing blocks (hero, features, pricing, testimonials, footer, logo cloud) for Next.js; the free blocks are MIT on GitHub, premium blocks and pages are paid.

Free tier Commercial OK Download

All website sections and blocks

Questions

Is TW Elements free?

The free package is, under the MIT license, for personal and commercial use with no credit required. Pro components and design blocks are paid.

Do I need to credit TW Elements on my site?

No. The license page lists no attribution required for the free package and for Pro.

Can I try it without installing anything?

Yes, with the ready files from a public file server, but that loads files from outside servers on every visit.

Can a client reuse a Pro site's files for another site?

No. Under the Pro license the client may use the site you built, but not the Pro files on their own.