Skip to canvas
Storybook
/
Default
Danger Colored Alert
Glass Background Alert
Custom Position AlertSkip to canvas
Alert With Custom JSX Children
  1. Recently opened
  2. Back to componentsESC
  3. Clear history
Skip to sidebar
This story is not configured to handle controls. Learn how to add controls
NameDescriptionDefaultControl
alertPositionX
alert's position along the x axis
"left""center""right"
"left"
-
alertPositionY
alert's position along the y axis
"top""middle""bottom"
"bottom"
-
color
"primary""secondary""warning""danger"
"primary"
-
fullWidth
boolean
false
-
glass
have glassy background for alert ✨
boolean
false
-
onClose

if this function is passed as prop, a cross icon button will be present on the alert component and this function will run when that button is clicked

MouseEventHandler<HTMLButtonElement>
--
show
boolean
false
-