---
title: Alert
description: "`Alert` is a component that conveys information to the user."
links:
- style: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/alert/alert.style.ts
- source: https://github.com/yamada-ui/yamada-ui/tree/main/packages/react/src/components/alert
- storybook: https://yamada-ui.github.io/yamada-ui?path=/story/components-alert--basic
---
```tsx
セル
か…完全体に………完全体になれさえすれば………!!!
```
## Usage
```tsx
import { Alert } from "@yamada-ui/react"
```
```tsx
import { Alert } from "@/components/ui"
```
```tsx
import { Alert } from "@workspaces/ui"
```
```tsx
```
### Change Status
```tsx
{(status, index) => (
セル
か…完全体に………完全体になれさえすれば………!!!
)}
```
### Change Variant
```tsx
{(variant, index) => (
{variant !== "island" && }
セル
か…完全体に………完全体になれさえすれば………!!!
)}
```
### Change Color Scheme
```tsx
{(row, index) => (
セル
か…完全体に………完全体になれさえすれば………!!!
)}
```
### Change Loading Scheme
```tsx
{(row, index) => (
セル
か…完全体に………完全体になれさえすれば………!!!
)}
```
### Customize Layout
```tsx
セル
か…完全体に………完全体になれさえすれば………!!!
セル
か…完全体に………完全体になれさえすれば………!!!
```
## Props
### Alert.Root
| Prop | Default | Type | Description |
| ------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
| `variant` | `"plain"` | `"island" \| "plain" \| "solid" \| "subtle" \| "surface" ...` | The variant of the component. |
| `status` | `"info"` | `StatusScheme` | The status of the alert. |
### Alert.Description
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
### Alert.Icon
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
### Alert.Loading
| Prop | Default | Type | Description |
| ---------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
| `duration` | - | `IconProps["dur"]` | The CSS `dur` property. |
| `loadingScheme` | `"oval"` | `Loading.Scheme` | The loading scheme. |
| `secondaryColor` | - | `"-moz-initial" \| "ActiveBorder" \| "ActiveCaption" \| "aliceblue" \| "amber.100" \| "amber.200" \| "amber.300" \| "amber.400" \| "amber.50" \| "amber.500" ...` | The CSS `color` property. |
### Alert.Title
| Prop | Default | Type | Description |
| ------------- | ------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------ |
| `as` | - | `As` | The HTML element to render. |
| `asChild` | - | `boolean` | Merges its props onto its immediate child. |
| `css` | - | `CSSObject \| CSSObject[]` | The CSS object. |
| `colorScheme` | - | `"amber" \| "black" \| "blackAlpha" \| "blue" \| "cyan" \| "danger" \| "emerald" \| "error" \| "flashy" \| "fuchsia" ...` | Set color scheme variables. |
## Accessibility
`Alert` follows the [WAI-ARIA - Alert Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/alert/) for accessibility.
### ARIA Roles and Attributes
| Component | Role and Attributes | Usage |
| ------------ | ------------------- | ------------------------------ |
| `Alert.Root` | `role="alert"` | Indicates that it is an alert. |