useSnackbarController
@firecms/core / useSnackbarController
Function: useSnackbarController()
Section titled “Function: useSnackbarController()”useSnackbarController():
object
Defined in: hooks/useSnackbarController.tsx:42
Hook to retrieve the SnackbarContext.
Consider that in order to use this hook you need to have a parent
FireCMS
Returns
Section titled “Returns”object
close()
Section titled “close()”close: () =>
void
Returns
Section titled “Returns”void
open()
Section titled “open()”open: (
props) =>void
Parameters
Section titled “Parameters”autoHideDuration?
Section titled “autoHideDuration?”number
message
Section titled “message”ReactNode
Returns
Section titled “Returns”void
SnackbarController