diff --git a/docs/assets/plugins/metadata/metadata.js b/docs/assets/plugins/metadata/metadata.js index 06598fd3..dc5aa4c5 100644 --- a/docs/assets/plugins/metadata/metadata.js +++ b/docs/assets/plugins/metadata/metadata.js @@ -357,11 +357,11 @@
- + Since ${component.since || '?'} - + ${component.status}
diff --git a/docs/components/alert.md b/docs/components/alert.md index 3e2d0b80..3cab705a 100644 --- a/docs/components/alert.md +++ b/docs/components/alert.md @@ -2,7 +2,7 @@ [component-header:sl-alert] -Alerts are used to display important messages either inline or as toast notifications. +Alerts are used to display important messages inline or as toast notifications. ```html preview @@ -26,12 +26,12 @@ const App = () => ( ## Examples -### Types +### Variants -Set the `type` attribute to change the alert's type. +Set the `variant` attribute to change the alert's variant. ```html preview - + This is super informative
You can tell by how pretty the alert is. @@ -39,7 +39,7 @@ Set the `type` attribute to change the alert's type.
- + Your changes have been saved
You can safely exit the app now. @@ -47,7 +47,7 @@ Set the `type` attribute to change the alert's type.
- + Your settings have been updated
Settings will take affect on next login. @@ -55,7 +55,7 @@ Set the `type` attribute to change the alert's type.
- + Your session has ended
Please login again to continue. @@ -63,7 +63,7 @@ Set the `type` attribute to change the alert's type.
- + Your account has been deleted
We're very sorry to see you go! @@ -75,7 +75,7 @@ import { SlAlert, SlIcon } from '@shoelace-style/shoelace/dist/react'; const App = () => ( <> - + This is super informative
You can tell by how pretty the alert is. @@ -83,7 +83,7 @@ const App = () => (
- + Your changes have been saved
You can safely exit the app now. @@ -91,7 +91,7 @@ const App = () => (
- + Your settings have been updated
Settings will take affect on next login. @@ -99,7 +99,7 @@ const App = () => (
- + Your session has ended
Please login again to continue. @@ -107,7 +107,7 @@ const App = () => (
- + Your account has been deleted
We're very sorry to see you go! @@ -121,7 +121,7 @@ const App = () => ( Add the `closable` attribute to show a close button that will hide the alert. ```html preview - + You can close this alert any time! @@ -164,7 +164,7 @@ const App = () => { Icons are optional. Simply omit the `icon` slot if you don't want them. ```html preview - + Nothing fancy here, just a simple alert. ``` @@ -173,7 +173,7 @@ Icons are optional. Simply omit the `icon` slot if you don't want them. import { SlAlert } from '@shoelace-style/shoelace/dist/react'; const App = () => ( - + Nothing fancy here, just a simple alert. ); @@ -185,9 +185,9 @@ Set the `duration` attribute to automatically hide an alert after a period of ti ```html preview
- Show Alert + Show Alert - + This alert will automatically hide itself after three seconds, unless you interact with it. @@ -228,10 +228,10 @@ const App = () => { return ( <>
- setOpen(true)}>Show Alert + setOpen(true)}>Show Alert - Primary - Success - Neutral - Warning - Danger + Primary + Success + Neutral + Warning + Danger - + This is super informative
You can tell by how pretty the alert is.
- + Your changes have been saved
You can safely exit the app now.
- + Your settings have been updated
Settings will take affect on next login.
- + Your session has ended
Please login again to continue.
- + Your account has been deleted
We're very sorry to see you go! @@ -296,9 +296,9 @@ You should always use the `closable` attribute so users can dismiss the notifica