SnackbarController
@firecms/core / SnackbarController
Interface: SnackbarController
Section titled “Interface: SnackbarController”Defined in: hooks/useSnackbarController.tsx:14
Controller to display snackbars
Properties
Section titled “Properties”close()
Section titled “close()”close: () =>
void
Defined in: hooks/useSnackbarController.tsx:19
Close the currently open snackbar
Returns
Section titled “Returns”void
open()
Section titled “open()”open: (
props) =>void
Defined in: hooks/useSnackbarController.tsx:25
Display a new snackbar. You need to specify the type and message. You can optionally specify a title
Parameters
Section titled “Parameters”autoHideDuration?
Section titled “autoHideDuration?”number
message
Section titled “message”ReactNode
Returns
Section titled “Returns”void