Components/Feedback
Deprecated. FloatingNotification is deprecated and will be removed in the next major version. Please use SectionHelper instead.
Interactive docs page: https://wix-pages.com/design-system-documentation/#/component/floatingnotification
Notification informs users about the status change in application. Floating notification is used as a temporary overlay element or inline element within cards.
<Notification/> instead.<SectionHelper/> instead.Control the appearance of the floating notification with type prop. It supports 7 options:
standard (default) - use it to provide additional information relevant to current user task or an action.success - use it to inform users about successful operation.destructive - use it for error messages and information about critical issues that prevent to continue.warning - use it to draw the user's attention to unresolved issues that might affect the application, but doesn't block the process.premium - use it for premium upgrades only — packages that let accept payments, connect domain and have business email. Read more about Premium patterns.preview - use it to present process status or related additional data.dark - use it to emphasize informational messages in the context of other content.Control component width in pixels or percentage with width prop.
Set component to fill 100% of its parent container width with fullWidth prop. Prop has an effect on notification appearance - it removes left/right borders and corner radius, changes component height and paddings.
Add call to actions to a notification with:
buttonProps - use to add a primary actiontextButtonProps - use it to add a text button. Add a link to an external URL with href prop.Component can have both actions at the same time.
Control whether notification can be dismissed by a user with showCloseButton prop.
Add more context for the notification purpose with prefixIcon.
Position notification on top of content in modals to update users about the status change.
Place notifications first in the section that they apply to.
| Name | Type | Default | Description |
|---|---|---|---|
buttonProps | ButtonAsButtonProps<{ label?: ReactNode; }> | ButtonAsAnchorProps<{ label?: ReactNode; }> | ButtonGenericProps<{ label?: ReactNode; }> | ButtonAsComponentProps<{ label?: ReactNode; }> | — | Accepts props for a <Button/> action. The button is rendered only when this object isn't empty. Use label to set its text. |
dataHook | string | — | Applied as data-hook HTML attribute that can be used in the tests. |
fullWidth | boolean | — | Is notification full width (removes left and right border, border radius, more height and bigger paddings) |
onClose | MouseEventHandler | — | Defines a callback function which is called when the close button is clicked. |
prefixIcon | ReactElement | — | An icon element to appear before content. |
showCloseButton | boolean | true | Specifies whether the close button is displayed. |
text | ReactNode | — | The text content of the notification. |
textButtonProps | ButtonAsButtonProps<{ label?: ReactNode; }> | ButtonAsAnchorProps<{ label?: ReactNode; }> | ButtonGenericProps<{ label?: ReactNode; }> | ButtonAsComponentProps<{ label?: ReactNode; }> | — | Accepts props for a <TextButton/> action. The text button is rendered only when this object isn't empty. Use label to set its text. |
type | "warning" | "standard" | "destructive" | "premium" | "dark" | "success" | "preview" | 'standard' | Controls the type of the notification, which sets its color. |
width | string | — | The width of the content container of the notification. |
Import the driver matching your test environment:
| Method | Description |
|---|---|
clickButton | Clicks notification button. |
getButtonLabel | Get the notification button's text. |
clickTextButton | Clicks the notification text button. |
getTextButtonLabel | Get the notification text button's text |
clickCloseButton | Clicks the notification close button |
getText | Get the notification text. |
isButtonAs | Checks whether button with passed tag name exists. |
getButtonHref | Get the notification button href attribute's value. |
getButtonAttr | Get the notification button attribute's value by name. |
isTextButtonAs | Checks whether text button with passed tag name exists. |
getTextButtonHref | Get the notification text button href attribute's value. |
getTextButtonAttr | Get the notification text button attribute's value by name. |
exists | Checks whether the component found with the given data hook. |
element | Gets the component root element. |
click | Clicks on the component root element. |
base | Returns UniDriver for the base element. |
DEPRECATED section (#14239)Last updated: 22 October 2026