Develop ultra fast with Prismane 🎉

Toaster API

Learn about the Toaster component's props and CSS classes.

Import

import { ToasterProps } from "@prismane/core";

Props

Toaster

Toaster extends Flex component's props.

NameTypeDescriptionDefault
positionbottom-right / top-right / bottom-left / top-leftThe position of the toaster container.bottom-right

CSS

Toaster extends Flex component's CSS classes.

RuleGlobal ClassDescription
root.PrismaneToaster-rootThe container of the square component.
root.PrismaneToaster-root-{position}The container of the square component based on it's position.

useToast

Return Value

NameTypeDescription
toast(toast: ToastProps & {element: ReactNode}) => voidFunction that pushes a toast into the queue.