boolean
Alert
Alerts are used to communicate a state that affects a system, feature or page.
Props#
Alert Props#
Alert
is the wrapper for Alert
component. It composes the Flex
component.
addRole
addRole
colorScheme
colorScheme
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
"blue"
size
size
Sizes for Alert
are not implemented in the default theme. You can extend the theme to implement them.
string
status
status
The status of the alert
"info" | "warning" | "success" | "error" | "loading"
"info"
variant
variant
"subtle" | "left-accent" | "top-accent" | "solid"
"subtle"
AlertIcon Props#
AlertIcon
composes Icon
and changes the icon based on the status
prop.
AlertTitle Props#
AlertTitle
composes the Box
component.
AlertDescription Props#
AlertDescription
composes the Box
component.
Props#
Alert Props#
Alert
is the wrapper for Alert
component. It composes the Flex
component.
addRole
addRole
boolean
colorScheme
colorScheme
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink" | "linkedin" | "facebook" | "messenger" | "whatsapp" | "twitter" | "telegram"
"blue"
size
size
Sizes for Alert
are not implemented in the default theme. You can extend the theme to implement them.
string
status
status
The status of the alert
"info" | "warning" | "success" | "error" | "loading"
"info"
variant
variant
"subtle" | "left-accent" | "top-accent" | "solid"
"subtle"
AlertIcon Props#
AlertIcon
composes Icon
and changes the icon based on the status
prop.
AlertTitle Props#
AlertTitle
composes the Box
component.
AlertDescription Props#
AlertDescription
composes the Box
component.