NoticeBar

NoticeBar is able to provide some notice information.

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

Example

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'
ON THIS PAGE