Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Localization Footer Block for React

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

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 with region and currency controls for React with Base UI. A divider splits it: at the start, the wordmark, a sentence and three groups of links in a nav labelled Footer; at the end, a "Region and currency" panel with two Selects, a country and a currency, over a framed price sample, "Team plan from $19.00 / month". Choosing a country rewrites the sample in that country's number format (a German price reads 17,48 €) and picks its usual currency, and the currency can then be changed on its own. Prices come from one fixed, indicative rate table in the file and the note under the price says so; a polite live line speaks the new price once per choice. A legal band across the foot closes the block with no rule under it. The rails and top rule come from the Guides spine, and the divider meets the top rule with a + mark.

FAQ

Where do the prices and rates come from?

From the file: PRICE_USD is the plan's price in US dollars and each entry of CURRENCIES has a rate, the number of units per dollar. They are example figures and the note under the price says "Indicative rate" and that you are billed in US dollars. Replace them with a call to your own pricing data, or with a table your server renders, before you ship; a footer should never show a rate that nothing backs.

How is the price formatted?

With Intl.NumberFormat, given the country's locale and the currency's code, so "$19.00", "17,48 €", "¥2,850" and "₹1,577.00" each follow their own rules for symbol, separators and decimals. The price is one left-to-right run, so it reads correctly in a right-to-left layout.

What does choosing a country change?

Two things: the locale the numbers are written in, and the currency Select, which jumps to the country's usual currency. Changing the currency afterwards keeps the country's number format, so a visitor in Germany can look at the price in dollars written the German way.

What does a screen reader hear?

Each Select is named ("Country or region", "Currency"), opens with the arrow keys or Enter and closes with Escape. A live line that is empty from the start says "Team plan from 17,48 € a month." once per choice, so the sample is announced without being read twice.

Does the footer move when the price changes?

No. The price is one line of fixed height, and the rate note reserves two lines, so a longer rate or a wider symbol never moves the panel or the legal band.

How does it fit on a phone?

The parts stack: the wordmark and links first, a rule, then the panel with the two Selects side by side from sm and one under the other below it. The legal band stacks under that.

  • Pro

    A footer for a help-desk inbox whose Select of six languages rewrites its words and flips it to right-to-left when Arabic is chosen.

  • Pro

    A footer for a meeting-notes tool whose segmented control (EN, FR, DE, ES) rewrites the footer's own words, with three link groups and a legal row.

  • 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

    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.

  • Pro

    Currency Select Pricing

    Billing switches

    Prices in the visitor's currency for a travel planner: five large currency chips in the header and three plan cells whose prices roll at display size between dollars, euros, pounds, yen and rupees, each currency with its own local price points.

  • Pro

    A slim footer for a design-token editor with a theme button that cycles light, dark and system and really changes the page's theme.