limestone/Alert
Limestone styled modal Alert components.
Members
Section titled “Members ”Alert Component
Section titled “Alert   Component ”A modal Alert component, ready to use in Limestone applications.
Alert may be used to interrupt a workflow to receive feedback from the user.
The dialog consists of a title, a message, and an area for additional
limestone/Alertlimestone/Alert.Alert.buttons.
Usage:
<Alert
open={this.state.open}
title="An Important Alert"
>
<image>
<AlertImage src={this.state.src} type="thumbnail" />
</image>
Body text for alert. Components may also be used here for greater customizability.
<buttons>
<Button>Button 1</Button>
<Button>Button 2</Button>
</buttons>
</Alert> Extends:
limestone/Alertlimestone/Alert.AlertBase
Wrapped with:
ui/Slottableui/Slottable.Slottable
AlertBase Component
Section titled “AlertBase   Component ”A modal Alert component.
This component is most often not used directly but may be composed within another component as it is within limestone/Alertlimestone/Alert.Alert.
Properties
Sets the buttons layout direction.
In auto mode, button direction follows UX defaults:
overlay- horizontal when there are exactly 2 buttonsfullscreen- horizontal when there are less than 3 buttonsotherwise vertical
Buttons to be included under the component.
Typically, up to 3 buttons are used.
children
Section titled “children”The contents of the body of the component.
Only shown when type="overlay". If children is text-only, it will be wrapped with
limestone/BodyTextlimestone/BodyText.
Customizes the component by mapping the supplied collection of CSS class names to the corresponding internal elements and states of this component.
The following classes are supported:
alert- The root class namecontent- The content component classfullscreen- Applied to atype='fullscreen'alertoverlay- Applied to atype='overlay'alerttitle- The title component class
Image to be included in the Alert component.
It is recommended to use the AlertImage component.
onClose
Section titled “onClose”Called when the user requests to close the Alert.
This also includes pressing the cancel key.
onHide
Section titled “onHide”Called after the transition to hide the Alert has finished.
Opens the Alert.
Default: falseoverlayPosition
Section titled “overlayPosition”Position of the Alert when type=overlay.
There are five types:
center- Popup in the center of the screenbottom left- Popup in the bottom left of the screenbottom right- Popup in the bottom right of the screentop left- Popup in the top left of the screentop right- Popup in the top right of the screen
Size of the Alert when type="overlay".
small- narrow widthmedium- medium widthlarge- wide width, supports title
When omitted, defaults to medium when there are exactly 2 buttons, otherwise small.
The primary text displayed.
Only shown when type="fullscreen".
Type of popup.
There are two types:
fullscreen- Full screen popupoverlay- Popup in the center of the screen
AlertImage Component
Section titled “AlertImage   Component ”An image for use in an Alert.
Properties
String value or Object of values used to determine which image will appear for a specific component size.
Type of image to appear in the alert component. There are two types:
icon- A small square sized image typethumbnail- A common image type
Size of the image when type is set to icon.