Skip to main content
Version: 2.0.0-alpha

Interface: SnackbarController

Controller to display snackbars

Properties

close

close: () => void

Type declaration

▸ (): void

Close the currently open snackbar

Returns

void

Defined in

lib/src/hooks/useSnackbarController.tsx:23


isOpen

isOpen: boolean

Is there currently an open snackbar

Defined in

lib/src/hooks/useSnackbarController.tsx:18


open

open: (props: { message: string ; title?: string ; type: SnackbarMessageType }) => void

Type declaration

▸ (props): void

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

Parameters
NameType
propsObject
props.messagestring
props.title?string
props.typeSnackbarMessageType
Returns

void

Defined in

lib/src/hooks/useSnackbarController.tsx:29

Need a hand?

We are happy to offer consulting services to help you get the most out of FireCMS.
Get in touch