@impossiblefinance/uikit
Version:
Set of UI components for impossible projects
23 lines (22 loc) • 666 B
TypeScript
import { MouseEvent, ReactNode } from 'react';
export declare type AlertTheme = {
background: string;
};
export declare const variants: {
readonly INFO: "info";
readonly DANGER: "danger";
readonly SUCCESS: "success";
readonly WARNING: "warning";
readonly ANNOUNCEMENT: "announcement";
};
export declare type Variants = typeof variants[keyof typeof variants];
export interface AlertProps {
variant?: Variants;
title: string | ReactNode;
children?: ReactNode;
onClick?: (evt: MouseEvent<HTMLButtonElement>) => void;
toastBackground?: string;
alertBackground?: string;
toastIcon?: string;
toastBorder?: string;
}