UNPKG

goobs-frontend

Version:

A comprehensive React-based libary for building modern web applications

26 lines 1.04 kB
import { default as React } from 'react'; import { AlertProps } from '../Alert'; export interface SnackbarProps { open: boolean; onClose: () => void; message: string; severity: AlertProps['severity']; /** * Milliseconds before the snackbar automatically hides. Defaults to 6000 * when omitted (`undefined`). Pass `0` (or any non-positive value) to * DISABLE auto-hide entirely — the snackbar then stays visible until it is * dismissed manually (close button / `onClose`). */ autoHideDuration?: number; /** * Styling forwarded to the inner Alert (theme selection + container/ * severity/close-button overrides). Typed off AlertProps so Snackbar never * has to import the Alert theme module directly — the inner Alert owns all * visual theming; Snackbar owns only fixed positioning (see * Snackbar.module.css). */ styles?: AlertProps['styles']; } declare const Snackbar: React.FC<SnackbarProps>; export default Snackbar; //# sourceMappingURL=index.d.ts.map