# TW Elements — card for AI agents

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

Category: Website sections and blocks (also: UI kits and website templates) · maker MDB (mdbootstrap) · checked 2026-11-09 · style: minimal, corporate

## Price
- Price: Free tier
- Free tier: Free package MIT; Pro components/blocks paid (which blocks are free not checked).
- Pricing page: https://tw-elements.com/pro/

## License
MIT (free package) — https://tw-elements.com/license/

- commercial: **conditions** (Commercial use with conditions)
  > In order to use TWE in your commercial projects without limitations, you need to purchase a commercial license
  (https://tw-elements.com/pro/)
- attribution: **no** (No credit needed)
  > No attribution required
  (https://tw-elements.com/license/)
- in app: **yes** (Can ship inside your app)
  > Free packages are available under the MIT License.
  (https://tw-elements.com/license/)
- redistribute: **yes** (Can pass the files on to your own users)
  > Free packages are available under the MIT License.
  (https://tw-elements.com/license/)

## Rules to follow
- Keep the MIT copyright notice in the code if you redistribute it.
- No visible credit on the site is required by the licence.
- Check MDB's commercial terms before shipping a commercial product on the free package (the license page and Pro FAQ disagree).

## Can an AI agent use it by itself?
**Yes** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- npm install tw-elements, then copy block HTML from tw-elements.com docs; no account for free parts. (sign-in: none)
- Formats: html
- Not allowed: Some blocks/components are Pro only

## How to connect
- Package (npm/PyPI)
- npm: `npm install tw-elements`
- Repository: https://github.com/mdbootstrap/TW-Elements
- Website: https://tw-elements.com

## Notes
Commercial terms conflict: the license page says the free MIT package allows personal and commercial use, while the Pro page FAQ says using TWE in commercial projects 'without limitations' needs a paid commercial license. Last npm release 2.0.0 (2024-03-04).

## Numbers (AgentGid data)
- Gid Score: 38
- GitHub stars: 13,196
- Downloads last week: 25,791

## Lines to paste into your prompt or AGENTS.md

```
- 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/)
```

## Links
- AgentGid page: https://agentgid.com/assets/tw-elements/
- Is it free for commercial use? https://agentgid.com/assets/tw-elements/commercial-use/
- Source: https://tw-elements.com/
- Source: https://tw-elements.com/license/


## 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 to 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: Give server-made admin pages buttons, tabs and pop-ups that work from attributes in the HTML, without writing scripts. (idea, not from the official pages)

### How to start
- 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
```

- 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",
};
```

- Load the script before the end of the page, then copy component HTML from the docs.

```
<script src="./TW-ELEMENTS-PATH/js/tw-elements.umd.min.js"></script>
```


### 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.

### Good to know
- TW Elements is set up as a plugin in a tailwind.config.js file, the Tailwind version 3 way. Projects on Tailwind version 4 need extra setup.
- The free package holds twelve interactive parts, such as buttons, menus, accordions, carousels, pop-ups, tabs, tooltips and inputs. The date picker and charts from the docs are not in it.
- The newest package, version 2.0.0, came out in March 2024, and no newer version has been published since.
- The pricing page says commercial use without limits needs a paid license, while the license page calls the free package free for commercial use. Ask the vendor if this matters to you.
- Pro is a yearly subscription with project limits by tier. Its license also bans building competing kits, templates or page builders with it.

Checked 2026-11-09 against: https://tw-elements.com/, https://tw-elements.com/license/, https://tw-elements.com/pro/, https://tw-elements.com/docs/standard/getting-started/quick-start/, https://tw-elements.com/docs/standard/components/accordion/, https://tw-elements.com/docs/standard/components/buttons/, https://tw-elements.com/docs/standard/components/cards/, https://tw-elements.com/docs/standard/components/modal/, https://tw-elements.com/docs/standard/components/alerts/, https://tw-elements.com/docs/standard/navigation/tabs/, https://tw-elements.com/docs/standard/forms/inputs/, https://tw-elements.com/docs/standard/forms/datepicker/, https://tw-elements.com/docs/standard/data/charts/, https://tw-elements.com/docs/standard/designblocks/hero-sections/, https://tw-elements.com/docs/standard/designblocks/pricing/, https://github.com/mdbootstrap/TW-Elements/blob/master/README.md, https://github.com/mdbootstrap/TW-Elements/blob/master/src/js/tw-elements.free.es.js, https://registry.npmjs.org/tw-elements, https://registry.npmjs.org/tw-elements/2.0.0

### Mistakes to avoid
- Don't: <script src="../node_modules/tw-elements/dist/js/tw-elements.umd.min.js"></script> (path from the quick start page) → Do: <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.)
- Don't: import { Datepicker, Chart } from "tw-elements" → Do: 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.)
- Don't: Linking only css/tw-elements.min.css and writing your own Tailwind classes next to the components → Do: 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.)
- Don't: Importing from "tw-elements" in a bundled app and expecting the data-twe-* attributes to work by themselves → Do: 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.)
- Don't: npm install -g mdb-cli, then mdb login → Do: 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.)

### 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.

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
