UNPKG

665 BTypeScriptView Raw
1import { BoxProps } from "../Box";
2import { IconProps } from "../Icon";
3import * as React from "react";
4
5export interface IAlert {
6 /**
7 * The status of the alert
8 */
9 status?: "error" | "success" | "warning" | "info";
10 /**
11 * The variant of the alert style to use.
12 */
13 variant?: "subtle" | "solid" | "left-accent" | "top-accent";
14}
15
16export type AlertProps = IAlert & BoxProps;
17
18/**
19 * Alerts are used to communicate a state that affects a system, feature or page
20 */
21export const Alert: React.FC<AlertProps>;
22
23export const AlertTitle: React.FC<BoxProps>;
24export const AlertDescription: React.FC<BoxProps>;
25export const AlertIcon: React.FC<IconProps>;