-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs-infra] Simplify docs demo (#42016)
- Loading branch information
1 parent
afffc2f
commit ca6b5b4
Showing
5 changed files
with
17 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
<Alert severity="error">This is an error alert — check it out!</Alert> | ||
<Alert severity="warning">This is a warning alert — check it out!</Alert> | ||
<Alert severity="info">This is an info alert — check it out!</Alert> | ||
<Alert severity="success">This is a success alert — check it out!</Alert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as React from 'react'; | ||
import Alert from '@mui/material/Alert'; | ||
import Stack from '@mui/material/Stack'; | ||
|
||
export default function DemoInDocs() { | ||
return ( | ||
<Stack sx={{ width: '100%' }} spacing={2}> | ||
<Alert severity="info">This is an info alert — check it out!</Alert> | ||
<Alert severity="success">This is a success alert — check it out!</Alert> | ||
</Stack> | ||
); | ||
} |
2 changes: 2 additions & 0 deletions
2
docs/pages/experiments/docs/DemoInDocsNotEditable.tsx.preview
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<Alert severity="info">This is an info alert — check it out!</Alert> | ||
<Alert severity="success">This is a success alert — check it out!</Alert> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters