Components
Language Selector
A select component pre-configured to display country flags as language options. Built on top of Select and the flag-icons library — import its CSS once in your app to enable the flags.
import { LanguageSelector } from "@empreint/ui";
import "flag-icons/css/flag-icons.min.css";
<LanguageSelector
languages={["fr", "us", "es"]}
defaultValue="fr"
onChange={(option) => console.log(option.value)}
/>Props
Prop
Type
CSS Variables
Prop
Type