@smitch/fluid
Version:
A Next/React ui-component libray.
22 lines (21 loc) • 693 B
TypeScript
/// <reference types="react" />
type BackgroundOption = 'info' | 'success' | 'warning' | 'danger' | 'primary' | 'secondary';
type ColorOption = 'dark' | 'light';
export interface ToastProps {
className?: string;
style?: React.CSSProperties;
toastColor?: ColorOption;
toastBackground?: BackgroundOption;
closeBackground?: BackgroundOption;
body: React.ReactNode;
open: boolean;
autohideDuration?: number;
horizontal?: 'left' | 'center' | 'right';
vertical?: 'top' | 'middle' | 'bottom';
rounded?: 'none' | 'md' | 'lg' | 'xl' | 'full';
autohide?: boolean;
onClose: () => void;
onClick?: () => void;
closeOnBlur?: boolean;
}
export {};