Component packs › Washi › Torn Tape Toast
The message is a strip of tape pulled out and pressed down; when it goes it rips in two along a jagged tear.
Torn Tape Toast is a toast from Washi, a component pack with 6 tape components: Controls made of washi tape: torn ends, printed patterns, strips that unroll, stick, peel and rip. Price: $2 for the whole pack.
Built with: jagged tear in two halves, unroll and press, polite live region.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
message | string | Shown on mount. Leave empty to start hidden. | |
duration | number | 3600 | Milliseconds before it tears itself off. 0 keeps it until dismissed. Default 3600. |
pattern | WzPattern | ||
width | number | 360 | Width of the area the toast sits in, px. Default 360. |
dark | boolean | ||
onDismiss | () => void | ||
autoplay | number | false | Showcase mode: shows a sample message every N ms while visible. |
show(message: string): voiddismiss(): voiddestroy(): voidimport TapeToast from './TapeToast';
<TapeToast />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Skeuomorphic UI.