shadcn.io is not affiliated with official shadcn/ui
Three Row Footer Block for React
A three-row footer for a leather-goods brand: the brand and four link groups (an accordion on phones), a newsletter band with a real one-line form, and a legal band with the policy links and social icons.
Installation
Overview
A three-row footer for React with Base UI, in stacked bands ruled from rail to rail with a + where each rule meets the rails. Row one is the brand and four groups of links in the nav labelled Footer: columns from md, and on a phone an accordion with the first group open. Row two is the newsletter: a title and a line at the start, and at the end an email field with the Shine Button, which checks the address, shows a problem under the field and turns into a confirmation in the same space. Row three is the legal band: the copyright and the policy links, and four social icon links, each named for screen readers and by a tooltip. It's built from Accordion, Field, Input, Tooltip, Guides, Shine Button and Button, with your theme's tokens for every colour.
FAQ
Where does the sign-up go?
Nowhere yet. The submit handler waits 800 milliseconds, as a stand-in for a request, then shows the confirmation. Replace that timer in submit with a call to your mailing-list provider: email holds the address.
How is the address checked?
The form has noValidate. On submit, problemWith checks that something was typed and that it has an @ and a domain; the message replaces the helper line under the field, the field gets aria-invalid, and focus stays on it. Typing clears the message.
How does the accordion work on a phone?
Below md the four groups become an accordion, one open at a time, the first open to start; from md they are plain columns. Both are the same links in a nav labelled Footer, and only one is shown at a time, so a screen reader meets one landmark.
The panels use the browser's hidden-until-found, so the links stay findable with the browser's own page search.
How are the social icons named?
Each icon is a link with a screen-reader-only name and a tooltip that shows the same name on hover and keyboard focus. The glyphs are generic, not brand logos: swap the icon and the href in SOCIAL.
Related
- Pro
Digest Chooser Newsletter Footer
Newsletter sign-upA newsletter footer for a developer digest: two link groups on one half of a split, and on the other a real sign-up that lets the visitor tick the digests they want, checks the address and confirms in place.
- Pro
Minimal Newsletter Footer
Newsletter sign-upA slim newsletter footer for a weekly letter: one centred title and line, a single email field with the Shine Button inside its box, and a legal band, with a real check and a confirmation in place.
- Pro
Mega Footer
Link gridsA mega footer for a cloud platform: a brand band, eight link groups with icons in two ruled bands of four on one desktop screen, an accordion on phones, and a legal band.
- 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
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.