UNPKG

@voiceiq/web-components

Version:

VoiceIQ Web Component library

25 lines (24 loc) 899 B
import React from 'react'; import BaseSnackbar, { CallbackFunction } from './Snackbar.base'; declare class CustomContentMultilineSnackbar { _snackBase: BaseSnackbar; content: React.ReactNode; persist: boolean; key: any; timeout: number; onCommit: CallbackFunction; onCancel: CallbackFunction; constructor(content: React.ReactNode, persist?: boolean, key?: string, timeout?: number); /** * Dispatch a Snackbar to the Notification tray * * @param {Func} onCommit What to do when the action is to be committed (Optional) * @param {Func} onCancel What to do when the action is to be cancelled (Optional) */ dispatch: (onCommit?: CallbackFunction, onCancel?: CallbackFunction) => void; /** * Dismisses the snackbar instance */ dismisss: () => any; } export default CustomContentMultilineSnackbar;