[docs][base] Add a Snackbar introduction demo #37602
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While browsing through the documentation yesterday, I realized we were lacking an intro demo for the Snackbar, which feels a bit inconsistent with all the other components. Usually, for these intro demos, it's nice to have a more fleshed-out example rather than a simpler one, to which point I again realized that the "Transitions" demo was really polished.
So, what I did was add an intro demo with the example that was being used in the Transitions section and then I simplified that to use the format all other demos were using just so we don't have two repeating polished examples.
Also took the opportunity to refine a bit the trigger button here and will eventually, in another PR, make sure all components that rely on a trigger button to be shown (menu, popper, modal, etc.) have consistent styles for it 🤙