Toast

A compact notification surface with title, description, and close affordance.

Usage

PreviewCode

API Reference

VoltToastClose — volt-toast-close

InputTypeDefault
class string ''
OutputType
closeChangevoid

VoltToastDescription — volt-toast-description

InputTypeDefault
class string ''

VoltToastTitle — volt-toast-title

InputTypeDefault
class string ''

VoltToast — volt-toast

InputTypeDefault
variant ToastVariants['variant'] 'default'
class string ''

CVA variants

PropOptionsDefault
variant default | success | error | warning | info default

Component Source

Install via CLI:npx @voltui/cli add toast
TypeScript
Loading editor…

Copy this code to your project. The component uses ng-primitives/toast.