DACH region preview

DACH region

DACH map with fading neighbours and a pastel band along the border, switchable to the US, China, India, Brazil or Japan

  • Group
    Maps
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/region-dach

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { RegionDach } from "@/registry/blocks/region-dach/region-dach";

<RegionDach />

Props

NameTypeDefaultDescription
region"dach" | "us" | "cn" | "in" | "br" | "jp"Shown region (controlled). Pair it with onRegionChange to keep the menu working
defaultRegionRegion"dach"Region shown first when region is not set
onRegionChange(region: Region) => voidCalled when the viewer picks a region in the menu
showSwitcherbooleantrueShow the region menu in the top-left corner
labelstring | ((region: Region) => string)"Map of the DACH region: Germany, Austria and Switzerland" / "Map of Japan" …Accessible description of the map; by default it follows the current region
classNamestringExtra class on the root, e.g. for width or margins

When to use

- Showing a service area, sales territory or market focus in Germany, Austria and Switzerland - Sections about regional exclusivity or local presence in one of the larger markets (US, China, India, Brazil, Japan), next to a short text

When not to use

Interactive app UI; these are illustrations, so keep them out of task flows.

Related

Integration grid