robust-react-ui
Version:
A React component library, built with a focus on accessibility, extensibility and reusability.
22 lines (21 loc) • 577 B
TypeScript
import { ReactNode } from 'react';
export interface IAlertProps {
children: ReactNode;
/**
* Provides component with a colour theme.
* @default primary
*/
variant?: 'primary' | 'success' | 'danger';
/**
* Component will take up the full width available.
*/
fullWidth?: boolean;
/**
* Controls the visibility of the Alert component
*/
visible?: boolean;
/**
* Function triggered when the close button is activated
*/
onCloseActionFunction?: (visibleState: boolean) => void;
}