Parameters
Optional
options: Partial<IParams> = {}
Returns {
close: (() => Promise<void>);
pickData: ((__namedParameters: ISnack) => Promise<boolean>);
render: (() => Element);
}
An object with two methods:
- render: A method that renders the snackbar.
- pickData: A method that displays the snackbar and waits for the user response.
close: (() => Promise<void>)
- (): Promise<void>
Returns Promise<void>
pickData: ((__namedParameters: ISnack) => Promise<boolean>)
- (__namedParameters): Promise<boolean>
Parameters
- __namedParameters: ISnack
Returns Promise<boolean>
render: (() => Element)
- (): Element
Returns Element
A hook for displaying a snackbar with an action button.