@unicity/design-system
Version:
A comprehensive React component library built on Material-UI with advanced theming capabilities including neumorphism design support
51 lines • 1.35 kB
TypeScript
import React from 'react';
import { SnackbarProps as MuiSnackbarProps, SlideProps } from '@mui/material';
type TransitionProps = Omit<SlideProps, 'direction'>;
export interface SnackbarProps extends Omit<MuiSnackbarProps, 'onClose'> {
/**
* Whether the snackbar is open
*/
open: boolean;
/**
* Callback fired when the snackbar is closed
*/
onClose?: (event?: React.SyntheticEvent | Event, reason?: string) => void;
/**
* The message to display
*/
message?: React.ReactNode;
/**
* The severity of the snackbar
*/
severity?: 'success' | 'error' | 'warning' | 'info';
/**
* Whether to show a close button
*/
showCloseButton?: boolean;
/**
* Position of the snackbar
*/
position?: {
vertical: 'top' | 'bottom';
horizontal: 'left' | 'center' | 'right';
};
/**
* Auto hide duration in milliseconds
*/
autoHideDuration?: number;
/**
* Custom action element
*/
action?: React.ReactNode;
/**
* Whether to use Alert component for styling
*/
useAlert?: boolean;
/**
* Transition component
*/
TransitionComponent?: React.ComponentType<TransitionProps>;
}
export declare const Snackbar: React.FC<SnackbarProps>;
export {};
//# sourceMappingURL=Snackbar.d.ts.map