Skip to content

NoticeBar

A scrollable notice bar that displays a horizontal or vertical message ticker. Commonly used for announcements and tips.

Basic Usage

vue
<template>
  <see-notice-bar text="This is a notice message that will scroll automatically." />
</template>

Vertical Mode

vue
<template>
  <see-notice-bar
    :vertical="true"
    :messages="['Message 1', 'Message 2', 'Message 3']"
  />
</template>

Props

PropTypeDefaultDescription
textstring''Notice text content
typestring'info'Notice type: info, warning, error
speednumber50Scroll speed in px/s
isScrollablebooleantrueWhether content is scrollable
isClosablebooleanfalseWhether to show close button
isShowIconbooleantrueWhether to show left icon
isShowbooleantrueWhether to show the notice bar
verticalbooleanfalseWhether to use vertical scrolling mode
messagesstring[][]Messages array for vertical mode

Events

EventParametersDescription
onClick-Triggered when notice bar is clicked
onClose-Triggered when notice bar is closed
onRightClick-Triggered when right area is clicked
update:isShow(value: boolean)Triggered when show state changes

Liao ICP No. 2025070134