Band
A band is the strip that separates two areas of a window: the search field under a toolbar, the composer under a message list, the action row along the bottom. Padding, and one rule on one edge.
It renders a plain <div> with no ARIA role, and that is the design rather than an oversight.
The shape is chrome, not meaning.
Basic
Inbox
24Ada Lovelace
The notes for Thursday's review are attached.
Which edge
edge takes top, bottom, both or none.
The default is bottom. Neither edge is the more common case, so say which one you mean at the
call site rather than relying on the default to match your layout.
The notes for Thursday's review are attached.
1 of 24 messages
both draws a rule on each edge, for a band that stands between two areas on its own.
Padding and surface
padding takes none, xs, sm, md or lg on the token scale. surface takes none,
subtle or muted for the band that sits on its own background.
Draft saved a moment ago.
Band, toolbar, container or card.header
Three components look close to a band. Each is a different thing:
| Component | Why it is not a band |
|---|---|
toolbar |
renders role="toolbar", an ARIA composite widget promising operable controls with arrow-key navigation. A band holding one search field does not deliver that, and the role would be a promise the surface does not keep. |
container |
caps and centers its width. A band runs edge to edge; capping it is the opposite of the point. |
card.header / card.footer |
bring exactly this shape — and only at the two ends of a card. A window with seven bands has two of them. |
When a band does carry meaning
Use as when the strip is a real landmark, and give it a name:
{{-- A band that IS the page footer, not one that merely looks like one. --}}
<x-wirekit::band as="footer" edge="top" aria-label="Page actions">
…
</x-wirekit::band>
Without as, no role is emitted and none is implied.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
edge |
string | 'bottom' |
Which edge carries the rule: none, top, bottom, both |
padding |
string | 'sm' |
Inline and block padding: none, xs, sm, md, lg |
surface |
string | 'none' |
Background treatment for the occasional band that is not on the page background: none, subtle, muted |
as |
string | 'div' |
The element to render. Use a landmark element when the band is one |
scope |
string|null | null |
Scoped personalization name |
Keyboard Interaction
A band is a layout wrapper and takes no focus of its own. Keyboard interaction belongs to
whatever it contains — and that is the reason it emits no role: a role="toolbar" would
announce arrow-key navigation between the controls inside, which nothing here implements.