Skip to main content
Version: 3.0.0-beta

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

Sign up to our newsletter to get the latest news and updates. No spam!