Skip to main content

useSnackbarController

Callable

  • useSnackbarController(): { close: () => void; open: (props: { autoHideDuration?: number; message: ReactNode; type: SnackbarMessageType }) => void }

  • Hook to retrieve the SnackbarContext.

    Consider that in order to use this hook you need to have a parent FireCMS

    @see

    SnackbarController


    Returns { close: () => void; open: (props: { autoHideDuration?: number; message: ReactNode; type: SnackbarMessageType }) => void }

    • close: () => void
        • (): void
        • Returns void

    • open: (props: { autoHideDuration?: number; message: ReactNode; type: SnackbarMessageType }) => void
        • Parameters

          Returns void

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