UNPKG

@ntragas/pouncejstest

Version:

A collection of UI components from Panther labs

21 lines (20 loc) 767 B
import React from 'react'; import { ControlledAlertProps } from '../utils/ControlledAlert'; export interface SnackbarProps extends Omit<ControlledAlertProps, 'open' | 'onClose'> { /** The number of milliseconds that this snackbar will show until it automatically disappears * @default 6000 * */ duration?: number; /** * @ignore * A function to call in order for the snackbar to remove itself. Should be provided through * the `SnackbarManager` component * */ destroy: () => void; } /** * A Snackbar is a special version of Alert that gets shown as a response to a user's action in * order to provide feedback about the outcome of his action */ declare const Snackbar: React.FC<SnackbarProps>; export default Snackbar;