2.1.9 • Published 6 days ago

@material-tailwind/react v2.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
6 days ago

Documentation

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

Components

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

3.0.0-beta.5

6 days ago

3.0.0-beta.7

6 days ago

3.0.0-beta.6

6 days ago

3.0.0-beta.9

6 days ago

3.0.0-beta.8

6 days ago

3.0.0-beta.4

8 days ago

3.0.0-beta.3

13 days ago

3.0.0-beta.2

13 days ago

3.0.0-beta.1

16 days ago

3.0.0-beta.0

2 months ago

2.1.9

3 months ago

2.1.8

4 months ago

2.1.7

5 months ago

2.1.6

5 months ago

2.1.2

8 months ago

2.1.1

8 months ago

2.1.4

7 months ago

2.0.5

10 months ago

2.1.3

7 months ago

2.0.7

10 months ago

2.1.5

5 months ago

2.0.6

10 months ago

2.0.8

9 months ago

2.1.0

9 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.4

11 months ago

2.0.1

12 months ago

2.0.0

12 months ago

1.3.5

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.2.5

1 year ago

1.2.4

2 years ago

1.2.0

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.2.3

2 years ago

1.0.5

2 years ago

1.2.2

2 years ago

1.0.4

2 years ago

1.2.1

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

1.0.3

2 years ago

1.0.0-beta

2 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago