Components / surfaces

Footer

The row that closes a panel or a section: a note at the start and the actions at the end.

Rendered from the package · open on its own

Summary

The row that closes a panel or a section: a note at the start and the actions at the end.

APG patternnone
Built onnative elements
Statusself-tested
Since0.16.0
<Footer note="Renews 1 December" action={<><Button emphasis="transparent">Cancel plan</Button><Button>Change plan</Button></>} />
<Dialog title="Rename project" footer={<Footer action={<Button>Save changes</Button>} />}>…</Dialog>

Anatomy

A <div data-se="footer"> holding, in order, note and action. It is Header's mirror: a note where the title is, and the actions at the end. It is one of the three regions of the panel template, with Header and Body above it; it fills the footer slot of a Card or a Dialog and stands alone under a list or a form.

PartElementRequired
action<div>no
note<p>no
<div data-se="footer">
  <p data-part="note">Renews 1 December</p>
  <div data-part="action"><button data-se="button" …>Change plan</button></div>
</div>

data-se="footer" names the anatomy and data-part="footer" names a region of a panel. A Footer in a Card's footer slot carries both: the slot on the wrapper the card draws, the anatomy on the row inside it.

Properties

PropertyValuesDefaultWhat it does
noteReact.ReactNodenoneWords at the start of the row, in muted text: a total, a date, what the actions will do. Text and inline content; it is a paragraph.
actionReact.ReactNodenoneThe controls held at the end of the row, in the order written: a Button, a few buttons, a Link, a Pagination. Which one comes last is the platform's convention and the caller's to follow.
askeyof React.JSX.IntrinsicElementsnoneThe element to render. div by default; footer where the row closes a sectioning element.

States

_None. Rest is the only condition it has._

Behavior

The actions keep the end. With a note or without one, the actions sit at the end of the row. A note sits at the start.

The row wraps before it squeezes. When the note and the actions do not fit on one line, the actions move under the note and stay at the end. Actions that do not fit on one line wrap among themselves.

The order of the actions is the caller's. They are drawn in the order written.

Accessibility

It carries no role. Pass as="footer" where the row closes an <article> or a <section>; inside one, a <footer> is not a landmark. At page level <footer> is the page's contentinfo, and that is PageShell's.

The note is read before the actions, as text. It carries no live region; a note that changes while the reader watches is not announced.

The actions are a <div>. A Pagination is a <nav> and may sit there, which a <span> could not hold.

Keyboard

None of its own. Each action is a normal tab stop, in the order written.

Roles, states and properties

_None written. The elements carry their own._

Focus

Never takes focus itself.

Screen reader

Not recorded as verified. Stage 4 of the readiness ladder — driving each component with VoiceOver and NVDA — is unstarted across the package, and no component should claim otherwise until docs/journal/ records the session that did it.

Contrast and target size

npm run check:contrast audits every color pair this component uses across all four skins, light and dark, and fails the build on a shortfall. Two waivers are on the record in docs/audit/DEFERRED.md.

It sets no target size of its own; anything interactive inside it brings its own.

Tested

_Nothing asserts against this component._

Known gaps

_No upstream requirement is recorded as not applicable._

Appearance

A row that wraps, items centered, the actions pushed to the end by an auto margin. The note is small muted text at the body's line height. Standalone it draws no padding and no rule: the layout around it sets the distance. In a Card's footer slot the card draws the padding and the hairline above; in a Dialog's, the dialog draws the padding.

TokenUsed for
--se-leading-bodyline-height
--se-space-2gap
--se-space-3gap
--se-text-mutedcolor
--se-text-smfont-size

Motion

None.

Content

The note is a fact, not an instruction. Renews 1 December, 4 of 12, Last saved a minute ago.

An action is a verb, and the one that finishes the panel says what it does. Save changes, not OK.

Usage

At the bottom of a panel, or under a section with no frame. In a Card's footer slot, in a Dialog's, or on the page under a Body.

A link that belongs at the start is a note. note takes inline content, so See how this is counted sits at the start while the buttons keep the end.

When not to use it. For the foot of a page, PageShell. For several controls with keys of their own, a Toolbar. For one button under a form field, the button.

Notes

Its own component, the owner's word of 14 Nov 2026. Until then footer was a part of Card and of Dialog only, and the two disagreed: a card started its footer's content at the start, a dialog at the end.

A property for which end the actions sit at was rejected. One row, one rule. Content that belongs at the start is the note.

Named parts for a primary and a secondary action were rejected. Button already says which one leads, by its emphasis.

The auto margin is on the actions, not the note. An app's unlayered p { margin: 0 } cancels a layered margin on a paragraph; Header's wrap fix found it.