Page footer
The actions that finish a page, under a rule at the end of it — PageHeader's other end.
{/* Generated by scripts/build-component-docs.mjs — do not edit. The source is the component folder: guidance.json, the doc block and the props. Change those. */}
The actions that finish a page, under a rule at the end of it — PageHeader's other end.
Import
import { PageFooter } from "@ir/ui";Props
Takes the props of the element it renders, and nothing of its own — styling is the component's business, not the caller's.
Do and don't
Cancel first, the primary at the inline end.
Don't — Lead with the primary and put Cancel after it.
Dialog, Drawer and Card all put the primary at the end, so a person who has learned where Save is in one of them has learned it everywhere. Reversing it on page forms means the product disagrees with itself about which side finishes a job.
Pair it with the secondary or the outline.
Don't — Pair the primary with a ghost button.
A ghost reads as a tertiary action, so Cancel stops looking like the other half of a pair and starts looking optional. Same ruling as Dialog and Drawer footers, 29 Sept.
Keep it to the actions that finish the page.
Don't — Park a record count, a last-saved time or a filter in it because there is room.
The rule above it says everything over this line is the page and everything under it ends the page. Anything else in the row makes the reader check whether it is a control before they can act, which is the whole cost the rule was drawn to avoid. It is also the one pair here that cannot be drawn: the linter refuses justify-between on PageFooter, which is the rule doing its job.
Keep the footer inside the content column, so it ends where the form ends.
Don't — Right-align the buttons to the page on a fluid or standard page.
A form page is width="reading", so the column caps at 768 and the buttons land a bounded distance from the last field. Put the footer outside that column on a 2560 monitor and the submit sits 1500px from the thing it submits.
Accessibility
- A plain <div>, not a <footer>: a footer element inside <main> is a generic element anyway, and the page's real contentinfo — if a product has one — is the shell's.
- The rule is a border, so nothing is announced for a line that carries no meaning of its own.
- Order in the DOM is order in the tab ring, and it is the order drawn: Cancel reached before the primary. Nothing is reordered visually.
Where it is drawn
Not drawn in Figma yet. Measured off the Ops Console provisioning portal's Create tenant and Provision product pages: a rule across the form column, the buttons flush to its end edge ~24 under it, primary last. DrawerFooter is the nearest drawn equivalent.