Socket
Socket
Sign inDemoInstall

@material-tailwind/react

Package Overview
Dependencies
33
Maintainers
2
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @material-tailwind/react

@material-tailwind/react is an easy-to-use components library for ReactJS & Tailwind CSS inspired by Material Design.


Version published
Weekly downloads
43K
decreased by-8.72%
Maintainers
2
Install size
11.0 MB
Created
Weekly downloads
 

Readme

Source
material-tailwind

Material Tailwind


Total Downloads Version Licenese



Documentation

Visit https://www.material-tailwind.com/docs/react/installation for full documentation.


Components

AccordionAlertAvatar
accordion alert avatar
BadgeBreadcrumbsButton
badge breadcrumbs button
Button GroupCardCheckbox
button-group card checkbox
ChipCollapseCarousel
chip collapse carousel
DialogDrawerIcon Button
dialog drawer icon-button
InputFormList
input form list
MenuNavbarPopover
menu navbar popover
Progress BarPaginationRadio Button
progress-bar pagination radio-button
Rating BarSelectSlider
rating-bar select slider
Speed DialSpinnerStepper
speed-dial spinner stepper
SwitchTabsText Area
switch tabs textarea
TimelineTooltipTypography
timeline tooltip typography
FooterImageVideo
footer img video
SidebarTable
sidebar table

Getting Started

Learn how to use @material-tailwind/react components to quickly and easily create elegant and flexible pages using Tailwind CSS.

@material-tailwind/react is working with Tailwind CSS classes and you need to have Tailwind CSS installed on your project - Tailwind CSS Installation.


  1. Intall @material-tailwind/react.
npm i @material-tailwind/react

  1. Once you install @material-tailwind/react you need to wrap your tailwind css configurations with the withMT() function coming from @material-tailwind/react/utils.
const withMT = require("@material-tailwind/react/utils/withMT");

module.exports = withMT({
  content: ["./src/**/*.{js,jsx,ts,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
});

  1. @material-tailwind/react comes with a theme provider that set's the default theme/styles for components or to provide your own theme/styles to your components. You need to wrap your entire application with the ThemeProvider coming from @material-tailwind/react.
import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App";

// @material-tailwind/react
import { ThemeProvider } from "@material-tailwind/react";

const root = ReactDOM.createRoot(document.getElementById("root"));

root.render(
  <React.StrictMode>
    <ThemeProvider>
      <App />
    </ThemeProvider>
  </React.StrictMode>,
);

  1. Congratulations 🥳, you did it, now you're ready to use @material-tailwind/react.
import { Button } from "@material-tailwind/react";

export default function Example() {
  return <Button>Button</Button>;
}


Community

We're excited to see the community adopt Material Tailwind, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!

Contributing

Contributions are always welcome!

See CONTRIBUTING.md for ways to get started.

Please adhere to this project's CODE_OF_CONDUCT.md.

License

MIT

Keywords

FAQs

Last updated on 08 Feb 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc