Skip to main content

Interface: SnackbarController

Controller to display snackbars

Properties#

close#

close: () => void

Close the currently open snackbar

Type declaration#

▸ (): void

Returns#

void

Defined in#

hooks/useSnackbarController.tsx:23


isOpen#

isOpen: boolean

Is there currently an open snackbar

Defined in#

hooks/useSnackbarController.tsx:18


open#

open: (props: { message: string ; title?: string ; type: SnackbarMessageType }) => void

Display a new snackbar. You need to specify the type and message. You can optionally specify a title

Type declaration#

▸ (props): void

Parameters#
NameType
propsObject
props.messagestring
props.title?string
props.typeSnackbarMessageType
Returns#

void

Defined in#

hooks/useSnackbarController.tsx:29