AlertNext
Shows an important message in place, without interrupting what the member is doing. Pick the variant by meaning: `negative` for urgent, `warning` for caution.
partially-compliant
- Overview
- Props
Successor of Alert.
Variants
Use the variant based on semantic meaning:
negativefor urgent alertswarningfor alerts of lesser importancesuccessfor confirmation alertsinformativefor information or new announcements
Only informative and success alerts can be dismissed: passing onClose displays the close button. negative and warning alerts must stay visible, so onClose is not available on them.
A new feature is available
Check it out!
All good
Your changes were saved.
Be careful
This needs your attention.
Something went wrong
Explain the error simply and how to fix it.
Actions
Actions are declarative: pass a list of actions instead of rendering buttons as children. Set progress on an action to show a spinner and disable its button while it runs.
With the default orientation="vertical", they are stacked below the content.
Title
Actions are aligned with the title and the description
With orientation="horizontal", they are inline next to the content.
Title
Short, single-line description
Icon action
For a more compact call to action, use iconAction. It's only available with orientation="horizontal", and its label is used as the accessible name of the button.
Title
A compact icon action, inline next to the content
Custom icons
Each variant comes with its own icon. You can override it with icon — it natively works with <Emoji /> and <Icon /> — or hide it with icon={null}.

With an Emoji
With an Icon
Without any icon
Custom description component
The description accepts a component, which is useful to add a link for example.
Custom description
Some information you may want to read more about. view more...
Migrating from Alert
variantis now required, andpositiveis renamedsuccess- the deprecated
colorprop is gone, usevariant childrenis no longer supported: action buttons move toactions, any other content todescription(it accepts aReactNode)onCloseis only accepted oninformativeandsuccess
Accessibility
Screen readers announce the content when the component appears dynamically: warning and negative use the assertive alert role (WAI-ARIA Alert), informative and success the polite status role.
Playground
murray and murray/mobile.AlertNext props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| actions | AlertNextAction[]undefined | Labeled action buttons. Stacked when `orientation="vertical"`, inline when `"horizontal"`. | ||
| description | ReactNode | |||
| icon | 6 possibilitiesundefinednullReactElement<{ size?: IconSizeundefined; variant?: IconVariantundefined; }, stringJSXElementConstructor<any>> | |||
| iconAction | AlertNextIconActionundefined | |||
| onClose | (() => void)undefined | |||
| orientation | "vertical""horizontal"undefined | vertical | ||
| sx | PositionPropsundefined | |||
| title | ReactNode | |||
| variant* | "warning""negative""informative""success" |
Undocumented props
| Name | Type | Default Value | Description | Usage count |
|---|---|---|---|---|
| data-testid | any |
Style API
Use sx for one-off adjustments. It accepts these style keys:
Each can be overridden per breakpoint with: