Interface: SnackbarController
Controller to display snackbars
Properties​
isOpen​
• isOpen: boolean
Is there currently an open snackbar
Defined in​
hooks/useSnackbarController.tsx:18
Methods​
close​
â–¸ close(): void
Close the currently open snackbar
Returns​
void
Defined in​
hooks/useSnackbarController.tsx:23
open​
â–¸ open(props
): void
Display a new snackbar. You need to specify the type and message. You can optionally specify a title
Parameters​
Name | Type |
---|---|
props | Object |
props.message | string |
props.title? | string |
props.type | SnackbarMessageType |
Returns​
void