Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Mega Footer Block for React

A 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.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A mega footer for React with Base UI, for products with a lot to link to. A lean band holds the wordmark and one sentence. Under it, a nav labelled Footer holds eight groups (Compute, Storage, Networking, Solutions, Developers, Ecosystem, Support, Company) of five links, each heading led by a small icon, in two bands of four ruled across the page with + marks where each rule meets the rails, so the whole footer fits one desktop screen. A legal band closes it. On a phone the eight groups become an accordion, one open at a time with the first open, so the footer stays short; the links are the same at every width. The page's rails and top rule come from the Guides spine. It's built from Accordion, Guides and your theme's tokens, with no animation of its own.

FAQ

Are the links in the page twice?

The markup holds the desktop grid and the phone accordion as two navs, each labelled Footer, and CSS shows one at a time (max-md:hidden and md:hidden). The hidden one is display: none, so it is out of the accessibility tree and the tab order: a screen reader finds one Footer navigation at any width. The cost is the links once more in the HTML.

How does the phone accordion work?

Each group is a heading with a button; one group is open at a time and opening another closes it, and the first starts open. The open group's links sit in two columns. The Accordion takes hiddenUntilFound, so closed groups stay in the markup as hidden="until-found" and the browser's find in page opens the one that holds a match.

Does it really fit one screen?

On a 1280 by 855 desktop the whole footer, from its top rule to the legal band, is about 700 pixels tall. Five links per group is the budget: each extra link adds about 32 pixels to both bands.

How do screen readers move through it?

The block is a footer element, the page's content-info landmark when placed outside main. On desktop each group is a small h2 over a list; on a phone each is a heading with an expand button. The icons are decorative and hidden from assistive technology, and the policy links are a list named Legal.

How does it look on a phone?

Below md the brand band, the eight accordion rows (rail to rail, under a rule with + marks) and the legal band stack; a closed row is about 55 pixels tall, so all eight take about 440 pixels. Nothing scrolls sideways at 320 pixels.

  • Pro

    Sitemap Filter Footer

    Sitemaps and trails

    A sitemap footer for a documentation host: a search field that filters 36 links across six columns as you type, with a live count and a clear button.

  • Pro

    A footer where an accordion holds the links at every width: a brand half with the copyright, and four groups as rows between hairlines in the other half, one open at a time.

  • Pro

    The 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

    A 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 places

    A 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.

  • Pro

    A product footer for a scheduling tool: a lean brand row, three link groups as separate cells whose first link carries a one-line description and a badge, and a legal band.