Currency picker
A currency in a short list: code, name and symbol.
import { CurrencyPicker } from "@forgeron/ui";Currency
import { CurrencyPicker } from "@forgeron/ui";
export default function Default() {
return <CurrencyPicker defaultValue="EUR" locale="en" />;
}API → Props
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Currency" | Names the control. |
value / defaultValue | string | — | Controlled or not. An ISO 4217 code. |
onChange | (value: string) => void | — | On every change. |
currencies | string[] | twelve common ones | The codes offered. |
locale | string | — | Language of the names. |
size / variant | "sm" | "md" / "field" | "chip" | "md" / "field" | Like SelectMenu. |
disabled | boolean | — | Not editable. |
className | string | — | Extra classes. |