Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
@material-tailwind is an easy-to-use components library for Tailwind CSS and Material Design.
Material Tailwind is an open-source UI component library by Creative Tim that brings Google Material Design styling to Tailwind CSS projects, available as @material-tailwind/react for React and @material-tailwind/html for plain HTML. It provides a set of ready-to-use components that accept Tailwind CSS classes and can be customized through a theme provider.
Material Tailwind is a components library that marries Material Design principles with Tailwind CSS utility classes. It ships as two npm packages: @material-tailwind/react (version 2.1.10) and @material-tailwind/html (version 2.2.3), both distributed under the MIT license. The library takes plain Tailwind CSS setups and adds Material-style components like buttons, cards, dialogs, and menus, so developers don't have to hand-build these patterns. It was created by Creative Tim and is documented at material-tailwind.com.
npm i @material-tailwind/react or npm i @material-tailwind/html after Tailwind CSS is already installed.Install the package with npm after Tailwind CSS is configured, wrap your Tailwind config with the withMT() function, then for React wrap your application in ThemeProvider. After those setup steps you can import any component — for example, import { Button } from "@material-tailwind/react" — and render it with usual JSX. The HTML version follows the same withMT() wrapping but has no provider step.
It is open source under the MIT license, so both @material-tailwind/react and @material-tailwind/html can be used freely without licensing fees.
Yes, both packages work with Tailwind CSS classes and require Tailwind CSS to be installed in the project. The setup includes a withMT() wrapper around your Tailwind configuration.
The React package is for React applications and includes a ThemeProvider for theming; the HTML package is for plain HTML and non-React environments, with a smaller component set. Both are configured using withMT().
Install the appropriate npm package, wrap your Tailwind config with the withMT() function, then for React wrap your app in ThemeProvider. Detailed installation instructions are at material-tailwind.com/docs/react/installation and the HTML equivalent.
The React package includes over 40 components such as Accordion, Alert, Button, Card, Dialog, Input, Menu, Navbar, Select, Tabs, Tooltip, Typography, Sidebar, and Table. The HTML package covers over 20, including Button, Card, Dialog, Input, Menu, and Tabs.
