ponchojs
Version:
Poncho
14 lines (13 loc) • 486 B
TypeScript
import React from 'react';
declare type AlertVariant = 'info' | 'success' | 'warning' | 'danger' | 'well';
declare type Props = React.PropsWithChildren<Partial<{
variant: AlertVariant;
title: string;
btnText: string;
onClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
loading: boolean;
disabled: boolean;
icon: string;
}>>;
export declare const Alert: React.MemoExoticComponent<(props: Props) => JSX.Element>;
export {};