CurrencySelector
Flag + currency code dropdown for the NavBar currencySlot. Ships with an 8-currency default (AUD, USD, NZD, GBP, EUR, JPY, SGD, CAD). Controlled value; parent owns state.
Selected: AUD ($ β Australian Dollar)
Custom currency list
Pass a currencies prop to override the default shortlist β useful for brands that only trade in a subset.
Custom list: AUD and USD only. Selected: AUD
NavBar composition
The typical placement: NavBar's currencySlot renders the picker next to the auth button.
Yonda
The CurrencySelector fits into NavBar's currencySlot prop.
Props reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | required | Controlled active currency code (e.g. "AUD") |
| onValueChange | (code: string) => void | required | Called with the new currency code |
| currencies | readonly Currency[] | SUPPORTED_CURRENCIES | Override the default 8-currency list |
| disabled | boolean | false | Disables the trigger |
| aria-label | string | "Currency" | Accessible label for the trigger |
| className | string | β | Extra classes on the wrapper |
| triggerClassName | string | β | Extra classes on the SelectTrigger |