Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Rights by Region Footer Block for React

A footer for an HR platform whose segmented control (EU and UK, United States, Elsewhere) swaps the four privacy-rights links that apply there, with the legal documents in a row under it.

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 footer that shows privacy rights by region for React with Base UI. Three bands: the wordmark and a sentence, then the rights band, where a segmented control of three regions (EU and UK, United States, Elsewhere) swaps four links ("Manage cookies", "Request my data", "Object to profiling" and the one that applies in that region, such as "Do not sell or share my information"), and then the legal documents. The visitor picks the region; nothing is guessed. Every region's links share one grid cell, so the band keeps its height when they change, and a polite status line says which region is showing. The links and wording are an example, not legal advice. It's built from Segment Group, Guides, plain links and your theme's tokens.

FAQ

How do I change the regions and their links?

Edit the REGIONS array at the top of the file: each region has an id, a label for the segment and four links. Add a region and a fourth segment appears, in array order. Keep four links per region so the cell holds the same height, and write each label the way your counsel words it.

Does it detect where the visitor is?

No. The block holds the region in its own state and starts on the first one. If you do know the visitor's region (from a header, or a consent tool), pass it to useState as the initial value; the control still lets them look at the others.

Does the band jump when the region changes?

No. All three lists sit in one grid cell, and the ones not showing are invisible and hidden from assistive technology, so the cell is as tall as the tallest list.

What does a screen reader say when I change region?

The segments are radio buttons in a group named Region, so Tab reaches the group and the arrow keys move between regions. A live line that is empty until the first change says "Showing the rights that apply in the United States" once, politely. The links are a list inside the nav labelled Footer.

How does it fit on a phone?

The segments share the full width (a long name wraps to two lines at 320 pixels), the four links stack one per row, and the legal documents wrap under them. Nothing scrolls sideways.

  • Pro

    A footer for a writing app whose legal row opens a cookie settings dialog with a switch per category and shows what was saved.

  • Pro

    Legal Strip Footer

    Slim and minimal

    A legal-only footer: a strip of five legal links as cells on shared hairlines, and a band with the wordmark and the legal entity line.

  • Pro

    Trust Centre Tiles Footer

    Trust and compliance

    A footer for a payments checkout whose three tiles (Security, Privacy, Compliance) share hairlines, each with an icon, a quiet Current status, one line and three links.

  • Pro

    Accessibility Statement Footer

    Trust and compliance

    A footer for a lesson reader with a conformance statement at the start (a drawn seal, the standard, the level and the review cadence, and a report-a-barrier link) and three link columns at the end.

  • Pro

    A footer for a payroll tool with a country Select and a currency Select beside a price sample that is reformatted as you choose.

  • Pro

    Audit Table Footer

    Trust and compliance

    A footer for a backup vault with an audit table in a framed figure (the programme, its scope, how often it is audited and a link to request the report) beneath the brand and three link columns.