Documentation
Toast

Toast

A concise, temporary message.

Usage

First of all, you need to import the useToasts hook from the kitchn package.

import { useToasts } from "kitchn"

Default

Multiline

With JSX

Action

Cancel

Types

Props

NameTypeDefaultRequiredDescriptionAccepted values
textJSX.Element | string--The content displayed in the toast.-
delaynumber3000-The delay (in milliseconds) before the toast closes.-
actionsToastInput.actions?: ToastAction[]--The default action of the toast.-
typestringprimary-The type of the toast.primary, secondary, info, success, warning, danger