forked from mui/material-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c34c583
commit dca67f5
Showing
4 changed files
with
22 additions
and
29 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
19 changes: 9 additions & 10 deletions
19
docs/data/material/components/snackbars/CustomizedSnackbars.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 |
---|---|---|
@@ -1,12 +1,11 @@ | ||
<Button variant="outlined" onClick={handleClick}> | ||
Open success snackbar | ||
</Button> | ||
<Button onClick={handleClick}>Open snackbar</Button> | ||
<Snackbar open={open} autoHideDuration={6000} onClose={handleClose}> | ||
<Alert onClose={handleClose} severity="success" sx={{ width: '100%' }}> | ||
This is a success message! | ||
<Alert | ||
onClose={handleClose} | ||
severity="success" | ||
variant="filled" | ||
sx={{ width: '100%' }} | ||
> | ||
This is a success Alert inside a Snackbar! | ||
</Alert> | ||
</Snackbar> | ||
<Alert severity="error">This is an error message!</Alert> | ||
<Alert severity="warning">This is a warning message!</Alert> | ||
<Alert severity="info">This is an information message!</Alert> | ||
<Alert severity="success">This is a success message!</Alert> | ||
</Snackbar> |
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
2 changes: 1 addition & 1 deletion
2
docs/data/material/components/snackbars/SimpleSnackbar.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