CurrencySelector
Currency selector dropdown with modal for choosing from available currencies. Displays symbol and currency code (e.g., ”€ EUR”). Responsive with full-screen modal on mobile.Import
Props
Available currency options
Currently selected currency (defaults to first option)
Callback when currency is selected
Custom styles for the container
CurrencySelectorOption
ISO currency code (e.g., “EUR”, “USD”)
Full currency name (e.g., “Euro”)
Currency symbol (e.g., ”€”, ”$“)
Usage
Notes
- Opens modal on click to select currency
- Modal is full-screen on mobile (less than 450px width)
- Shows checkmark icon next to selected currency
- Displays as “Symbol Code” format (e.g., ”€ EUR”)
- Auto-selects first option if no
selectedOptionprovided - Closes modal automatically when selection is made