Alert
A highlighted message with title, description and icon.
Import
import { Alert } from "@tarve/core";Usage
import { Alert, Icon } from "@tarve/core";
<Alert
variant="destructive"
icon={<Icon name="info" />}
title="Your session expired"
description="Sign in again to continue."
/>Props
| Prop | Type | Default |
|---|---|---|
description | string | — |
icon | Child | — |
title | string | — |
variant | AlertVariant | "default" |
Common props
Shared by every component. See descriptions →
childrenhighlightidkeymotionFromonHighlightonPasteonTransitionEndrovingGroupstyleTypes
type AlertVariant = "default" | "destructive" | "success";