shadcn.io is not affiliated with official shadcn/ui
Table of Contents Footer Block for React
An even two-column footer: the wordmark, description, social icons and legal line behind a divider from a numbered, two-column list of eight links.
Installation
Overview
A two-column footer for React with Base UI, for a firm with a short list of services and a few places to be found. The start half holds the wordmark, a description, four social icon links and, pinned to its foot, the copyright and the policy links. The end half is one nav labelled Footer: eight links as a table of contents, each a numbered row between hairlines, in two sub-columns. The divider between the halves runs from the spine's top rule to the end of the page, with a + where it meets the rule. The footer ends the page, so it draws no closing rule. On a phone the halves stack with a rule between them and the contents run in one column. It uses plain links and your theme's tokens, with no JavaScript of its own.
FAQ
How do I change the contents list?
Edit the PAGES array: each entry is a label and an href. The numbers are generated from the order, so they stay correct when you reorder. The list fills in columns of four; for a different count change sm:grid-rows-4 to the rows you want.
How does the divider reach the top rule?
The page column has no vertical padding; the two halves pad themselves, so the divider (a border on the end half) starts at the spine's top rule and runs to the page's end. A Guides layer on the end half adds the + where the divider meets the rule.
Why is the legal line not a band?
The divider runs to the end of the page, so the copyright and policies sit at the foot of the start half and the contents list owns the end half. If you prefer a full-width legal band, move them into a div under the grid and give it a Guides top rule.
How do screen readers move through it?
The block is a footer, the page's content-info landmark when placed outside main. The contents are a list in a nav named Footer under a small h2; the row numbers are hidden from assistive technology. The social links and the policy links are lists named Follow Stoneway and Legal.
Related
- Pro
Link Columns Footer
Link gridsThe classic link-column footer for an email API: a brand column with the wordmark, one sentence and four social links, four groups of links behind a split divider, and a legal band with the copyright and the policy links.
- Pro
Brand Split Footer
Brand-ledA brand-first split footer for a design tool: a display wordmark, a tagline and the Shine Button on one half, three link columns and the legal row on the other.
- Pro
Stacked Bands Footer
Slim and minimalA footer in three ruled bands: the wordmark, a sentence and the shop's pages; five social links with their names; and the legal row.
- Pro
Social Icons Footer
Slim and minimalA two-row footer: a wordmark and tagline beside five social icon buttons with tooltips, and a ruled band with the copyright and the policy links.
- Pro
Hairline Cells Link Directory Footer
Link gridsA brandless link directory: six groups of five links as cells on shared hairlines, three across by two down, with a legal band under the grid.
- Pro
Company Facts Footer
Company and placesA company footer for a construction-software firm: a brand with a facts list (founded, headquarters, people, customers, company number) and two link columns in cells sharing hairlines, then a slim band.