Component libraryLocale footer
Locale footer
ProSwitch language and region in a structured site footer.
npx shadcn@latest add @tidal-pro/footer-localeInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/footer-locale.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Required brand, title, localized groups and a controlled locale picker. An optional controlled region picker uses the same accessible native select contract. Consumers supply every localized string, navigation destination, option label, selection callback and side effect. Native footer, select and anchor attributes plus direct refs are forwarded; children and dangerouslySetInnerHTML replacement are removed. aria-disabled links omit href and suppress activation. Heading levels are bounded to h2-h4 and group headings remain subordinate.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.