40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
Markdown
# Material UI - Vite.js in Typescript example
|
|
|
|
## How to use
|
|
|
|
Download the example [or clone the repo](https://github.com/mui/material-ui):
|
|
|
|
<!-- #default-branch-switch -->
|
|
|
|
```sh
|
|
curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip=2 material-ui-master/examples/material-vite-ts
|
|
cd material-vite-ts
|
|
```
|
|
|
|
Install it and run:
|
|
|
|
```sh
|
|
npm install
|
|
npm run dev
|
|
```
|
|
|
|
or:
|
|
|
|
<!-- #default-branch-switch -->
|
|
|
|
[![Edit on StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/mui/material-ui/tree/master/examples/material-vite-ts)
|
|
|
|
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/material-vite-ts)
|
|
|
|
## The idea behind the example
|
|
|
|
This example uses [Vite.js](https://github.com/vitejs/vite).
|
|
It includes `@mui/material` with `@mui/icons-material` and their peer dependencies, including [Emotion](https://emotion.sh/docs/introduction), the default style engine in Material UI v5.
|
|
|
|
## What's next?
|
|
|
|
<!-- #default-branch-switch -->
|
|
|
|
You now have a working example project.
|
|
You can head back to the documentation, continuing browsing it from the [templates](https://mui.com/material-ui/getting-started/templates/) section.
|