Default
Short text stays stationary; overflow scrolls automatically.
Short text stays stationary; overflow scrolls automatically.
Use type for a semantic tone and color for a brand accent. Per-item tones work in notice lists.
Choose a soft, solid or plain surface independently of geometry. text-color can adjust custom solid foregrounds.
Rounded and square geometry use the shared shape configuration.
The shared small, default and large scale changes text, spacing and controls together.
Only overflowing content scrolls. speed uses px/s; duration keeps its seconds unit. Hover/focus, paused and system motion preferences control playback. Offscreen and hidden pages pause automatic activity.
items accepts strings or notice objects. Bind active-index, use built-in navigation, or let autoplay advance. The interval is in milliseconds; long scrolling messages finish a reading cycle before advancing. Controls and actions stay fixed.
Use wrapable to show the entire message. scrollable=false keeps a single stationary line with an ellipsis and native title.
Content can be a native link or clickable button. Fixed prefix, suffix and actions slots remain separate from scrolling text and the close control. Content slots are best for text and lightweight decoration; put interactive controls in actions.
Use v-model to show a previously closed notice again. close reports the close request; closed reports the completed exit.
Use before-close to wait for a choice, save a preference or complete other asynchronous work before closing. Resolve the Promise to approve; reject to keep the notice visible. The example uses Dialog to choose temporary or permanent dismissal, with the application saving the preference in localStorage. Reset clears this example’s saved preference.
The built-in button, slot close() and instance close() use the hook. Direct changes to v-model remain controlled by the owner. Waiting pauses automatic motion and disables duplicate button requests; closePending is available on the instance and in slot scopes. Handle close-error when rejected reasons need feedback.
Array<string | >StringStringString | false() => Promise<void>BooleanNumberBooleanBooleanBooleanBoolean(reason: unknown) => void() => Promise<boolean>