Components · Form Controls
Currency Select
A searchable ISO 4217 currency picker built from Intl: code, name and symbol. Also sits next to a MoneyInput.
import { CurrencySelect } from '@nexub/react';Usage
Picking the currency of a price, an invoice or an account.
Letting people change the currency next to an amount (`MoneyInput currencySlot`).
Two or three fixed currencies: use SegmentedControl or Select.
Showing an amount: use Amount.
Playground
Props
<CurrencySelect aria-label="Currency" value={currency} onValueChange={setCurrency} />Examples
Default
Labelled field
`CurrencyField` adds `label`, `description` and `error`, as ComboboxField.
Next to an amount
MoneyInput `currencySlot` puts the picker before the amount.
States
defaultdisabledinvalidreadOnlysize="sm"size="md"size="lg"
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | — | The ISO 4217 code, e.g. "USD". |
| defaultValue | string | — | The ISO 4217 code, e.g. "USD". |
| onValueChange | ((value: string) => void) | — | Called with the picked code. |
| currencies | string[] | — | Only these codes, in this order. Default: every code the browser knows (Intl.supportedValuesOf). |
| priority | string[] | — | Codes listed first; with priorityLabel, under that heading and the rest under restLabel. |
| priorityLabel | string | — | Codes listed first; with priorityLabel, under that heading and the rest under restLabel. |
| restLabel | string | — | Codes listed first; with priorityLabel, under that heading and the rest under restLabel. |
| locale | string | — | BCP 47 locale for names and symbols. Defaults to the user's. |
| name | string | — | A hidden input posts the code with a plain form. |
| size | 'sm' | 'md' | 'lg' | 'md' | Height of the field. |
| sheet | false | true | 'auto' | 'auto' (a bottom sheet below 768px) | The list as a bottom sheet below 768px. |
| aria-describedby | string | — | |
| aria-invalid | false | true | 'true' | 'false' | — | |
| aria-label | string | — | |
| aria-labelledby | string | — | |
| aria-required | false | true | 'true' | 'false' | — | |
| className | string | — | |
| disabled | boolean | — | |
| emptyText | React.ReactNode | 'No results found.' | Shown when the search finds nothing. |
| id | string | — | |
| invalid | boolean | — | |
| noneOption | string | — | A first option that clears the value (null), labelled with this text, e.g. "No manager". |
| placeholder | string | 'Select…' | Shown when nothing is picked. |
| readOnly | boolean | — | Shows the value; the list can't open. Stays focusable. |
| required | boolean | — | |
| searchPlaceholder | string | 'Search…' | The search box's placeholder. |
Accessibility
Keyboard
- Enter / Space / Arrow Down
Opens the list with focus in the search box.
- Type
Finds by code, name or symbol.
- Enter
Picks the highlighted currency.
Notes
Built on ComboboxField: the trigger is a `combobox` named by the label.
`currencyOptions(locale)` returns the same list for your own ComboboxField.
On iOS & Android: CurrencySelect
import { CurrencySelect } from '@nexub/react-native';
<CurrencySelect label="Currency" value={currency} onValueChange={setCurrency} />Web vs mobile
Same tokens and prop names. Where the platforms differ:
| Web | iOS & Android | |
|---|---|---|
| List | Every currency Intl knows, with search. | The 40 most traded currencies in a sheet; pass currencies for others. |
Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.
On device

iPhone (iOS simulator)

Pixel (Android emulator)
Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.
CurrencySelect props
| Prop | Type | Default | Description |
|---|---|---|---|
| currencies | string[] | — | Only these ISO 4217 codes, in this order. Default: the 40 most traded currencies (web lists every code; the native sheet has no search). |
| priority | string[] | — | Codes listed first. |
| locale | string | — | BCP 47 locale for the names and symbols. Defaults to the provider's locale. |
| labelrequired | string | — | — |
| value | T | — | — |
| defaultValue | T | — | — |
| onValueChange | (value: T) => void | — | — |
| placeholder | string | — | — |
| helperText | string | — | — |
| error | string | — | — |
| disabled | boolean | — | — |
| style | StyleProp<ViewStyle> | — | — |