Skip to main content
Version: 3.0.0-beta

Interface: SnackbarController

Controller to display snackbars

Properties​

close()​

close: () => void

Close the currently open snackbar

Returns​

void

Defined in​

packages/firecms_core/src/hooks/useSnackbarController.tsx:19


open()​

open: (props) => void

Display a new snackbar. You need to specify the type and message. You can optionally specify a title

Parameters​

• props

• props.autoHideDuration?: number

• props.message: ReactNode

• props.type: SnackbarMessageType

Returns​

void

Defined in​

packages/firecms_core/src/hooks/useSnackbarController.tsx:25

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