Coming from Orbiter, you should be aware of the following changes:
dismissable
has been renamedisDismissable
.wrapperProps
has been renamedoverlayProps
.onClose
has been removed.
An Alert is a “conversation” between the system and the user. It is prompted when the system needs input from the user or to give the user urgent information concerning their current workflow.
A Alert
uses the following components:
An alert must have a heading, some content and a primary button label.
An alert can have a secondary button.
An alert can have a cancel button.
An alert primary and secondary buttons can be disabled.
Use a confirmation alert when a non-destructive action is required from a user.
Use a destructive alert to confirm a permanent change, like deleting data.
An alert can be undismissable.
The open state can be handled in controlled mode.
An alert can show a pending state. This is useful when you want to show that an action is in progress.
A Alert can be small or medium. The default size is medium.
A Alert can have different size in mobile and desktop view.
The button to focus by default when the alert open.
The cancel button label.
Whether or not the dialog should close on outside interactions.
Whether or not the primary button is disabled.
The primary button label.
Whether or not the secondary button is disabled.
The secondary button label.
The visual style of the Alert.
The size of the Alert.
Additional props to render on the wrapper element.
Whether or not the Alert is loading.
The inline style for the element.
Children of the dialog. A function may be provided to access a function to close the dialog.
The CSS className for the element.
Called when the cancel button is clicked
Called when the primary button is clicked.
Called when the secondary button is clicked.
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null
value indicates that the local props completely override all props received from a parent.
The accessibility role for the dialog.
The element's unique identifier. See MDN.
Defines a string value that labels the current element.
Identifies the element (or elements) that labels the current element.
Identifies the element (or elements) that describes the object.
Identifies the element (or elements) that provide a detailed, extended description for the object.
Whether the overlay is open by default (controlled).
Whether the overlay is open by default (uncontrolled).
Handler that is called when the overlay's open state changes.
Coming from Orbiter, you should be aware of the following changes:
dismissable
has been renamed isDismissable
.wrapperProps
has been renamed overlayProps
.onClose
has been removed.