From b7be82a35ef956b12933349224c334697be95110 Mon Sep 17 00:00:00 2001
From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com>
Date: Fri, 6 Oct 2023 09:18:18 -0300
Subject: [PATCH] use Sam's proposed formatting + fix some leftover wording
---
.../components/snackbars/snackbars.md | 60 +++++++++----------
1 file changed, 27 insertions(+), 33 deletions(-)
diff --git a/docs/data/material/components/snackbars/snackbars.md b/docs/data/material/components/snackbars/snackbars.md
index 6719f4bd81052f..574743a99dfaa9 100644
--- a/docs/data/material/components/snackbars/snackbars.md
+++ b/docs/data/material/components/snackbars/snackbars.md
@@ -15,28 +15,16 @@ waiAria: https://www.w3.org/TR/wai-aria-1.1/#alert
## Introduction
-The Snackbar provides users updates on an app's processes, temporarily appearing on the screen.
-Inspired by Google Keep, this demo shows a basic snackbar with a text element and two actions.
-
-{{"demo": "SimpleSnackbar.js"}}
-
-## Component
-
-### Usage
-
```jsx
import Snackbar from '@mui/material/Snackbar';
```
-### Anatomy
+The Snackbar provides users updates on an app's processes, temporarily appearing on the screen.
+Inspired by Google Keep, this demo shows a basic snackbar with a text element and two actions.
-The Snackbar component is composed of a root
that ... to complement:
+{{"demo": "SimpleSnackbar.js"}}
-```html
-
-
-
-```
+## Basics
### Position
@@ -54,39 +42,35 @@ Use the Snackbar Content component for adding text and actions to the snackbar.
{{"demo": "LongTextSnackbar.js"}}
-### Use with alerts
-
-Use an alert inside a snackbar for messages that communicate a certain severity.
-
-{{"demo": "CustomizedSnackbars.js"}}
-
### Transitions
You can use the `TransitionComponent` prop to change the transition of the Snackbar from [Grow](/material-ui/transitions/#grow) (the default) to others such as [Slide](/material-ui/transitions/#slide).
{{"demo": "TransitionsSnackbar.js"}}
-#### Using the Slide transition
+## Customization
-The demo below shows how to use the Slide transition.
+### Use with Alerts
-{{"demo": "DirectionSnackbar.js"}}
-
-## Common examples
-
-### Consecutive snackbars
-
-This demo shows how to show multiple snackbars without stacking them by using a consecutive animation.
+Use an alert inside a snackbar for messages that communicate a certain severity.
-{{"demo": "ConsecutiveSnackbars.js"}}
+{{"demo": "CustomizedSnackbars.js"}}
-### Usage with a FAB
+### Use with Floating Action Buttons
If you're using a [Floating Action Button](/material-ui/react-floating-action-button/) on mobile, Material Design recommends positioning any snackbar right above it.
The demo below shows you how to do that.
{{"demo": "FabIntegrationSnackbar.js", "iframe": true, "maxWidth": 400}}
+## Common examples
+
+### Consecutive Snackbars
+
+This demo shows how to show multiple snackbars without stacking them by using a consecutive animation.
+
+{{"demo": "ConsecutiveSnackbars.js"}}
+
## Third-party intergrations
### notistack
@@ -127,3 +111,13 @@ export default function MyComponent() {
);
}
```
+
+## Anatomy
+
+The Snackbar component is composed of a root
that ... to complement:
+
+```html
+
+
+
+```