Language Picker

A grid of language options exposed as an accessible listbox, with the selected language outlined in the accent color. Plug it into locale or profile settings.

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

Installation#

bash
npx shadcn@latest add @minidev/language-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/language-picker.json

Usage#

tsx
import { LanguagePicker } from "@/components/ui/language-picker"

export function Example() {
  return <LanguagePicker />
}

API reference#

LanguagePicker props
PropTypeDefault
valuestring"en"
onChange(id: string) => void-
classNamestring-
All settings page components

Learn more