Skip to main content
Version: 2.0.0

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:19


open

open: (props: { autoHideDuration?: number ; message: ReactNode ; 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.autoHideDuration?number
props.messageReactNode
props.typeSnackbarMessageType
Returns

void

Defined in

lib/src/hooks/useSnackbarController.tsx:25

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!