LocaleSwitcher
Language selector composed from the Menu primitive, powered by the i18n system with flag support and all Menu styling options.
Loading...
Loading syntax highlighting...01 Examples
Basic
Default trigger with flags; pass showFlag=false to drop them.
Loading...
Loading syntax highlighting...Variants and sizes
Loading...
Loading syntax highlighting...In a settings panel
Realistic use — small outlined trigger inline with other preference rows.
Preferences
Language
Region
Loading...
Loading syntax highlighting...02 Customization
Branded trigger
Override the underlying Menu trigger slot with a gradient brand-look.
Loading...
Loading syntax highlighting...03 Accessibility
Inherits the Menu listbox semantics — role="listbox", aria-expanded, aria-selected — plus a trigger aria-label from the i18n bundle. ↑ ↓ navigate, Enter selects, Esc closes. Locale names resolve from the active translation bundle.
04 API Reference
10 props
Add filter
Grouping
Summary
Column visibility
No matching properties |
No matching properties
05 Installation
Import
Loading...
Loading syntax highlighting...