Rebar UI

1.0

synthetic

NoticeBar

A full-width strip at the top of a view that stays until dismissed, scrolling if the text is too long.

Payroll noticeDismiss it, then bring it back
Info
Mobile design review is on 22 Oct, 14:00.
Error
Scrolling
Wrapped
Harbour launch moved to 24 Oct 09:00. Everyone on the Harbour rebrand: check your tasks, confirm the launch checklist and tell Maya about anything still open.
With action

In context

Pinned to a screenUnder the app bar, above the content
Projects
Tideline mobileDue 7 Nov

Offline tasks and a quiet inbox for the crew.

Inbox

3 changes waiting to sync.

Banner variant

Status stripvariant="banner": a plain full-width strip with centred text; colours and padding from --rebar-notice-bar-banner-*
Offline
Short

Props

PropTypeRequiredDefault
toneNoticeBarTone | undefinedNodefault
contentReactNodeYes—
iconReactNodeNo—
actionReactNodeNo—
closableboolean | undefinedNofalse
onClose(() => void) | undefinedNo—
onClick(() => void) | undefinedNo—
wrapboolean | undefinedNofalse
variant"default" | "banner" | undefinedNodefault
classNamestring | undefinedNo—
bionicboolean | undefinedNo—
bionicOptionsBionicOptions | undefinedNo—

data-rebar-* attributes

data-rebar-component="notice-bar" with data-rebar-tone set to the current tone; parts: icon, content, text (the actual scrolling/static text node), action, close.

Migrating to Ant Design

Not codemod-covered — this is the antd-mobile NoticeBar pattern. AntD desktop has no direct equivalent; closest is a full-width Alert with banner styling.