Alert

Alerts are used to communicate a state that affects a system, feature or page.

    SourceTheme Source@chakra-ui/alert

Props#

Alert.Root Props#

Alert.Root is the wrapper for Alert.Root component. It composes the Flex component.

addRole

Type
boolean
Default
false

colorScheme

Description

The visual color appearance of the component

Type
"whiteAlpha" | "blackAlpha" | "gray" | "red" | "orange" | "yellow" | "green" | "teal" | "blue" | "cyan" | "purple" | "pink"
Default
blue

size

Description

The size of the Alert

Type
string

status

Description

The status of the alert

Type
"info" | "warning" | "success" | "error" | "loading"
Default
info

variant

Description

The variant of the Alert

Type
"subtle" | "left-accent" | "top-accent" | "solid"
Default
subtle

Alert.Icon Props#

Alert.Icon composes Icon and changes the icon based on the status prop.

Alert.Title Props#

Alert.Title composes the Box component.

Alert.Description Props#

Alert.Description composes the Box component.

Edit this page on GitHub

Proudly made inNigeria by Segun Adebayo

Deployed by â–² Vercel