RUI.next

Data-Display
NoticeBar

NoticeBar

NoticeBar is able to provide some notice information.

<NoticeBar content="some content of notice information" />
<NoticeBar content="some content of notice information" />

Example

Basic usage of NoticeBar component.

NoticeBar types
Default type of NoticeBar

Alert type of NoticeBar

Error type of NoticeBar

Info type of NoticeBar
Customize NoticeBar
NoticeBar react component is able to provide some notice information, this page is about the basic usage of NoticeBar component.

API

PropertiesDescriptionTypeDefault
delayThe delay to start scrolling, unit msnumber2000
speedTHe scroll speed, unit px/snumber50
contentThe content of the NoticeBarReact.ReactNode-
closeableWhether it could be closedbooleanfalse
onCloseThe callback function when closed() => void-
extraThe additional area, displayed to the left of the close buttonReact.ReactNode-
iconThe voice icon on the left, could be customizedReact.ReactNode<Icon type="voice" />
typeThe type of the NoticeBar'default' | 'alert' | 'error' | 'info''default'