Skip to content
TrademarkTrademark
Docs
Components

Banner

Updated: October 18, 2026
View on GitHub

Banner is a full-width strip on the brand's solid colour, for a notice at the top of a screen. Text inside is centred, in label-default-s, in the brand's on-solid colour. See the web Banner for the browser version.

Basic usage

With an action

It takes Flex props and any children, such as a button. Add safeArea={["top"]} when it sits at the very top of the screen.

Differences from the web

  • Core's solid="brand-medium" is drawn as a background colour, since native Flex has no solid prop. Pass background to replace it.
  • Only string children get the on-solid text style. Wrap other text in Text with onSolid="brand-strong".
  • Children wrap onto more lines when they do not fit the screen's width.

API reference

Prop
Type
Default
Description
childrenReactNodeThe notice. Strings are drawn in the banner's text style.
...FlexPropsFlexPropsSpacing, size, surface and position props, as on Flex.
Edit this page on GitHub