@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
46 lines • 1.07 kB
TypeScript
import React from 'react';
import { AlertProps as MuiAlertProps } from '@mui/material';
export interface AlertProps extends Omit<MuiAlertProps, 'variant'> {
/**
* The severity of the alert
*/
severity?: 'error' | 'warning' | 'info' | 'success';
/**
* The variant of the alert
*/
variant?: 'filled' | 'outlined' | 'standard';
/**
* The title of the alert
*/
title?: string;
/**
* The content of the alert
*/
children?: React.ReactNode;
/**
* Whether the alert can be closed
*/
closable?: boolean;
/**
* Whether the alert is visible
*/
open?: boolean;
/**
* Callback fired when the alert is closed
*/
onClose?: () => void;
/**
* Custom icon for the alert
*/
icon?: React.ReactNode;
/**
* Whether to show the default icon
*/
showIcon?: boolean;
/**
* Custom action buttons
*/
action?: React.ReactNode;
}
export declare const Alert: React.FC<AlertProps>;
//# sourceMappingURL=Alert.d.ts.map