YYonda UI Docs

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

PropTypeDefaultDescription
valuestringrequiredControlled active currency code (e.g. "AUD")
onValueChange(code: string) => voidrequiredCalled with the new currency code
currenciesreadonly Currency[]SUPPORTED_CURRENCIESOverride the default 8-currency list
disabledbooleanfalseDisables the trigger
aria-labelstring"Currency"Accessible label for the trigger
classNamestringβ€”Extra classes on the wrapper
triggerClassNamestringβ€”Extra classes on the SelectTrigger