Skip to content

Commit

Permalink
[examples] Add shortcut to open example in online IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Aug 20, 2023
1 parent 5c96f3c commit 693de9c
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/base-ui-nextjs-tailwind-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip
cd base-ui-nextjs-tailwind-ts
```

Install dependencies and run:
Install it and run:

```bash
npm install
Expand Down
2 changes: 1 addition & 1 deletion examples/base-ui-vite-tailwind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip
cd base-ui-vite-tailwind
```

Install dependencies and run:
Install it and run:

```bash
npm install
Expand Down
12 changes: 10 additions & 2 deletions examples/joy-ui-nextjs-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting started
## How to use

Download the example [or clone the repo](https://github.com/mui/material-ui):

Expand All @@ -13,7 +13,7 @@ curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip
cd joy-ui-nextjs-ts
```

Install dependencies and run:
Install it and run:

```bash
npm install
Expand All @@ -22,6 +22,14 @@ npm run dev

Open [http://localhost:3000](http://localhost:3000) with your web browser to see the result.

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/joy-ui-nextjs-ts)

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/joy-ui-nextjs-ts)

You can start editing the page by modifying `src/app/page.tsx`. The page auto-updates as you edit the file.

This example uses [`next/font/google`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts#google-fonts) to automatically optimize and load Public Sans, a custom Google Font.
Expand Down
2 changes: 2 additions & 0 deletions examples/joy-ui-vite-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ 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/joy-ui-vite-ts)

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/joy-ui-vite-ts)
Expand Down
2 changes: 0 additions & 2 deletions examples/material-ui-cra-tailwind-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ or:

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/material-ui-cra-tailwind-ts)

<!-- #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-ui-cra-tailwind-ts)

## The idea behind the example
Expand Down
2 changes: 0 additions & 2 deletions examples/material-ui-cra-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ or:

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/material-ui-cra-ts)

<!-- #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-ui-cra-ts)

## The idea behind the example
Expand Down
2 changes: 0 additions & 2 deletions examples/material-ui-cra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ or:

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/material-ui-cra)

<!-- #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-ui-cra)

## The idea behind the example
Expand Down
10 changes: 9 additions & 1 deletion examples/material-ui-nextjs-ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip
cd material-ui-nextjs-ts
```

Install dependencies and run:
Install it and run:

```bash
npm install
Expand All @@ -22,6 +22,14 @@ npm run dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

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-ui-nextjs-ts)

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/material-ui-nextjs-ts)

You can start editing the page by modifying `src/app/page.tsx`. The page auto-updates as you edit the file.

This example uses [`next/font/google`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts#google-fonts) to automatically optimize and load Roboto, a custom Google Font.
Expand Down
10 changes: 9 additions & 1 deletion examples/material-ui-nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ curl https://codeload.github.com/mui/material-ui/tar.gz/master | tar -xz --strip
cd material-ui-nextjs
```

Install dependencies and run:
Install it and run:

```bash
npm install
Expand All @@ -22,6 +22,14 @@ npm run dev

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

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-ui-nextjs)

[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui/material-ui/tree/master/examples/material-ui-nextjs)

You can start editing the page by modifying `src/app/page.js`. The page auto-updates as you edit the file.

This example uses [`next/font/google`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts#google-fonts) to automatically optimize and load Roboto, a custom Google Font.
Expand Down

0 comments on commit 693de9c

Please sign in to comment.