componente · @solu30/ui-kit/navigation
LanguageSwitcher
El componente, montado
Cargando el componente del paquete instalado…
Cargando el chunk del paquete instalado…
De dónde se importa
import { LanguageSwitcher } from '@solu30/ui-kit/navigation'Props
| Prop | Requerida | Tipo | Qué hace |
|---|---|---|---|
| languages | sí | LanguageOption[] | — |
| currentLanguage | sí | string | — |
| onLanguageChange | sí | (code: string) => void | — |
| className | opcional | string | — |
| compact | opcional | boolean | Icon-only trigger (flag only, no shortName/chevron) for collapsed sidebars. Matches the ThemeToggle icon-variant footprint (p-2, rounded-md) so it lines up with other sidebar icon buttons. Dropdown panel is unaffected. |
| menuRow | opcional | boolean | Full-width menu-row trigger (px-2.5 py-2, hover:bg-surface, text-content) matching SidebarUserMenu's item/logout rows — use for `<SidebarUserMenu languageSwitcher={...}>` so the flag/label align to the same left indent as the rest of the panel. Content (flag + shortName + chevron) is unchanged; only trigger padding/colors are normalized. |