@chakra-ui/alert
TypeScript icon, indicating that this package has built-in type declarations

2.2.2 • Public • Published

@chakra-ui/alert

Alerts visually highlight important content for the user. They can contain a title, an icon and content. Each intent has a default icon associated with it.

Installation

yarn add @chakra-ui/alert

# or

npm i @chakra-ui/alert

Import components

import {
  Alert,
  AlertTitle,
  AlertIcon,
  AlertDescription,
} from "@chakra-ui/alert"

Basic usage

<Alert status="error" variant="solid" justifyContent="center">
  <AlertIcon />
  <AlertTitle>Your browser is outdated!</AlertTitle>
  <AlertDescription>Your Chakra experience may be degraded.</AlertDescription>
</Alert>

Package Sidebar

Install

npm i @chakra-ui/alert

Weekly Downloads

553,227

Version

2.2.2

License

MIT

Unpacked Size

93.3 kB

Total Files

57

Last publish

Collaborators

  • segunadebayo
  • _codebender828