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.
It takes Flex props and any children, such as a button. Add safeArea={["top"]} when it sits at the very top of the screen.
- 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.