Use Status Message...
- For alert messages that apply to a specific section of the page.
- To communicate the status of an order.
accessibleTextForIcon
is deprecated in SWAN 3.24. This prop will be removed in favor of SWAN's i18n system. Please opt in to the i18n system and remove this prop.
The preview has been updated.
Skin
The skin
prop dictates the styling and Icon rendered in a Status Message.
Info
Use skin="info"
for standard messages. This is the default skin.
The preview has been updated.
Success
Use skin="success"
for positive or success messages.
The preview has been updated.
Warning
Use skin="warning"
for cautionary messages.
The preview has been updated.
Error
Use skin="error"
for error or critical messages.
The preview has been updated.
Help
Use skin="help"
for messages directing users to further help such as CARE.
The preview has been updated.
Size
Use size="small"
to reduce the size of a Status Message.
The preview has been updated.
Actions
Use Link when one or more actions are required within a Status Message.
The preview has been updated.
Accessibility
If you’re not using SWAN’s i18n system, an accessible label for the icon must be provided using the accessibleTextForIcon
prop. This will announce the severity to assistive technology.