Function: useSnackbarController()
useSnackbarController():
object
Hook to retrieve the SnackbarContext.
Consider that in order to use this hook you need to have a parent
FireCMS
Returns​
object
close()​
close: () =>
void
Returns​
void
open()​
open: (
props
) =>void
Parameters​
• props
• props.autoHideDuration?: number
• props.message: ReactNode
• props.type: SnackbarMessageType
Returns​
void
See​
SnackbarController
Defined in​
packages/firecms_core/src/hooks/useSnackbarController.tsx:42