@sikka/hawa
Version:
Modern UI Kit made with Tailwind
30 lines (27 loc) • 993 B
TypeScript
import React__default from 'react';
import { S as SeverityType, D as DirectionType } from '../commonTypes-C0OLP6TN.js';
type AlertTypes = {
severity?: SeverityType | "hyper" | "oceanic";
/** The title of the alert placed above the text of the alert. Can be used alone */
title?: React__default.ReactNode;
/** The text of the alert placed below the title of the alert. Can be used alone */
text: React__default.ReactNode;
/** The duration for the alert to stay on the screen */
duration?: number;
direction?: DirectionType;
actions?: [
{
label: string;
onClick: any;
variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
}
];
/** Removes the close button */
persistent?: boolean;
icon?: any;
className?: string;
onAlertClosed?: () => void;
noDestroy?: boolean;
};
declare const Alert: React__default.FunctionComponent<AlertTypes>;
export { Alert };