Feedback | ToastArea
ToastArea#
Description#
- Transient notice (toast) container teleported to
body. Manages position, shape, animation, and accessibility; the queue (when they appear, how long they last) is decided by the application.
Props#
toasts(ToastNotice[]) — List of notices to display. Required.position('bottom-right' | 'bottom-center' | 'top-right' | 'top-center') — Where they stack. Default:'bottom-right'.
Emits#
action(ToastNotice) — Emitted when a notice’s button is touched.
Usage#
| |
Notes#
ToastNoticeincludes:id,message,tone,title,description,progress,action.- The default slot receives
{ toast, aviso }to customize each notice’s content. - Notices with a progress bar use fixed width (
w-80). - At the top, the newest goes first (flush to the edge).