Region Picker

Deployment region picker with selectable cards for each region and its latency in milliseconds. Uses radio semantics and an accent tint for the chosen one.

src/registry/ui/region-picker.tsx/r/region-picker.json

Regions

Installation#

bash
npx shadcn@latest add @minidev/region-picker

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/region-picker.json

Usage#

tsx
import { RegionPicker } from "@/components/ui/region-picker"

export function Example() {
  return (
    <RegionPicker value={region} onChange={setRegion} />
  )
}

API reference#

RegionPicker props
PropTypeDefault
valuestring"us-east"
onChange(id: string) => void-
classNamestring-

Examples#

All settings page components