Banner
A message about the whole product or account, across the top of the screen.
01Anatomy
5 parts. Select a number or a name to see what each part does.
01 · Container
A full-width strip above or right under the navigation. It pushes the page down.
- Required
- Yes
- Recommended
- One at a time. Two banners stacked look like an emergency.
02 · Icon
Says the kind of message: information, warning, error.
- Required
- No
03 · Message
One sentence: what is happening and when.
- Required
- Yes
- Recommended
- Short enough for one line on desktop.
04 · Action
A link to fix or read more: Renew, Details.
- Required
- No
05 · Dismiss
Closes the banner and remembers it.
- Required
- Only in some cases
- When
- Not on critical messages that are still true.
Example spacing, measured on this drawing (16 px = 1 em). A common implementation, not a rule: values change from system to system. W and H are width and height, as in Figma: Hug follows the content, Fill takes the space of the parent.
Spacing is measured on the normal view: switch back to Normal to show it.
02Structure
- Bannercomponent setauto layouthorizontalfillhugpadding V 8H 12gap 8
- Iconinstanceswapped by Type
- Messagetextfill
- ActioninstanceLinkboolean
- DismissinstanceIcon Buttonboolean
| Property | Type | Values |
|---|---|---|
| Type | Variant | InfoWarningCriticalPromotional |
| Action | Boolean + Text | “Renew” |
| Dismissible | Boolean | truefalse |
| Message | Text | “Your plan expires…” |
Set it to Fill width and put it in the page frame above the navigation: it pushes the rest down, like on the site.
03Variants
A banner has no states of its own: its link and close button follow theirs.
04Responsive behaviour
One line across the page: icon, message, action and close.
The message wraps on two lines and the action goes under it. The close stays top right.
There is no single correct anatomy: names, variants and properties differ from one design system to another. These are common structural models distilled from established design systems and accessibility guidance.
Proven methods for designing interfaces with AI. Every two weeks, in Italian.
Subscribe