Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Build accessible, unstyled Vue 3 components using Reka UI (formerly Radix Vue) with WAI-ARIA compliance.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
components/toast.md
1# Toast23Temporary notifications45**Parts:** `ToastProvider`, `ToastRoot`, `ToastViewport`, `ToastTitle`, `ToastDescription`, `ToastAction`, `ToastClose`, `ToastPortal`67## ToastProvider89### Props10| Prop | Type | Default |11|------|------|---------|12| `duration` | `number` | `5000` |13| `label` | `string` | `"Notification"` |14| `swipeDirection` | `"right" \| "left" \| "up" \| "down"` | `"right"` |15| `swipeThreshold` | `number` | `50` |1617## ToastRoot1819### Props20| Prop | Type | Default |21|------|------|---------|22| `as` | `AsTag \| Component` | `"li"` |23| `asChild` | `boolean` | - |24| `defaultOpen` | `boolean` | `true` |25| `duration` | `number` | - |26| `forceMount` | `boolean` | - |27| `open` | `boolean` | - |28| `type` | `"foreground" \| "background"` | `"foreground"` |2930### Emits31| Event | Payload |32|-------|---------|33| `escapeKeyDown` | `[event: KeyboardEvent]` |34| `pause` | `[]` |35| `resume` | `[]` |36| `swipeCancel` | `[event: SwipeEvent]` |37| `swipeEnd` | `[event: SwipeEvent]` |38| `swipeMove` | `[event: SwipeEvent]` |39| `swipeStart` | `[event: SwipeEvent]` |40| `update:open` | `[value: boolean]` |4142### Slots43| Slot | Type |44|------|------|45| `open` | `boolean` |46| `remaining` | `number` |47| `duration` | `number` |4849## ToastViewport5051### Props52| Prop | Type | Default |53|------|------|---------|54| `as` | `AsTag \| Component` | `"ol"` |55| `asChild` | `boolean` | - |56| `hotkey` | `string[]` | `["F8"]` |57| `label` | `string \| ((hotkey: string) => string)` | `"Notifications ({hotkey})"` |5859## ToastTitle6061### Props62| Prop | Type | Default |63|------|------|---------|64| `as` | `AsTag \| Component` | `"div"` |65| `asChild` | `boolean` | - |6667## ToastDescription6869### Props70| Prop | Type | Default |71|------|------|---------|72| `as` | `AsTag \| Component` | `"div"` |73| `asChild` | `boolean` | - |7475## ToastAction7677### Props78| Prop | Type | Default |79|------|------|---------|80| `altText`* | `string` | - |81| `as` | `AsTag \| Component` | `"div"` |82| `asChild` | `boolean` | - |8384## ToastClose8586### Props87| Prop | Type | Default |88|------|------|---------|89| `as` | `AsTag \| Component` | `"button"` |90| `asChild` | `boolean` | - |9192## ToastPortal9394### Props95| Prop | Type | Default |96|------|------|---------|97| `disabled` | `boolean` | - |98| `forceMount` | `boolean` | - |99| `to` | `string \| HTMLElement` | - |100