77 lines
3.5 KiB
Markdown
77 lines
3.5 KiB
Markdown
<div align="center" style="margin: 30px;">
|
|
<a href="https://refine.dev">
|
|
<img alt="refine logo" src="https://refine.ams3.cdn.digitaloceanspaces.com/readme/refine-readme-banner.png">
|
|
</a>
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div align="center">
|
|
<a href="https://refine.dev">Home Page</a> |
|
|
<a href="https://discord.gg/refine">Discord</a> |
|
|
<a href="https://refine.dev/examples/">Examples</a> |
|
|
<a href="https://refine.dev/blog/">Blog</a> |
|
|
<a href="https://refine.dev/docs/">Documentation</a>
|
|
|
|
<br/>
|
|
<br/>
|
|
|
|
[![Discord](https://img.shields.io/discord/837692625737613362.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/refine)
|
|
[![Twitter Follow](https://img.shields.io/twitter/follow/refine_dev?style=social)](https://twitter.com/refine_dev)
|
|
|
|
<a href="https://www.producthunt.com/posts/refine-3?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-refine-3" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=362220&theme=light&period=daily" alt="refine - 100% open source React framework to build web apps 3x faster | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>
|
|
|
|
</div>
|
|
|
|
<br/>
|
|
|
|
<div align="center">refine is an open-source, headless React framework for developers building enterprise internal tools, admin panels, dashboards, B2B applications.
|
|
|
|
<br/>
|
|
|
|
It eliminates repetitive tasks in CRUD operations and provides industry-standard solutions for critical project components like **authentication**, **access control**, **routing**, **networking**, **state management**, and **i18n**.
|
|
|
|
</div>
|
|
|
|
# Material UI integration for refine
|
|
|
|
[Material UI](https://mui.com/material-ui/getting-started/) is a library of React UI components that implements Google's Material Design.
|
|
|
|
[refine](https://refine.dev/) is **headless by design**, offering unlimited styling and customization options. Moreover, refine ships with ready-made integrations for [Ant Design](https://ant.design/), [Material UI](https://mui.com/material-ui/getting-started/overview/), [Mantine](https://mantine.dev/), and [Chakra UI](https://chakra-ui.com/) for convenience.
|
|
|
|
refine has connectors for 15+ backend services, including REST API, [GraphQL](https://graphql.org/), and popular services like [Airtable](https://www.airtable.com/), [Strapi](https://strapi.io/), [Supabase](https://supabase.com/), [Firebase](https://firebase.google.com/), and [NestJS](https://nestjs.com/).
|
|
|
|
## Installation & Usage
|
|
|
|
```
|
|
npm install @refinedev/mui @refinedev/react-hook-form @mui/material @mui/lab @mui/x-data-grid @emotion/react @emotion/styled react-hook-form
|
|
```
|
|
|
|
```tsx
|
|
import { ThemedLayoutV2 } from "@refinedev/mui";
|
|
|
|
import CssBaseline from "@mui/material/CssBaseline";
|
|
import GlobalStyles from "@mui/material/GlobalStyles";
|
|
import { ThemeProvider } from "@mui/material/styles";
|
|
|
|
const App = () => {
|
|
return (
|
|
<ThemeProvider>
|
|
<CssBaseline />
|
|
<GlobalStyles styles={{ html: { WebkitFontSmoothing: "auto" } }} />
|
|
<Refine
|
|
/* ... */
|
|
>
|
|
<ThemedLayoutV2>{/* ... */}</ThemedLayoutV2>
|
|
</Refine>
|
|
</ThemeProvider>
|
|
);
|
|
};
|
|
```
|
|
|
|
## Documentation
|
|
|
|
- For more detailed information and usage, refer to the [refine Material UI documentation](https://refine.dev/docs/api-reference/mui/).
|
|
- [Refer to complete refine tutorial with Material UI](https://refine.dev/docs/tutorial/introduction/select-framework/).
|
|
- [Refer to documentation for more info about refine](https://refine.dev/docs/).
|