Inputs and selection
Amount input
hero money field · editable={false} with keypad
function AmountInputDemo() { const [v, setV] = React.useState(''); const [cur, setCur] = React.useState(0); const symbol = CURRENCIES[cur]; return ( <AmountInput value={v} onChangeText={setV} symbol={symbol} helper={`Up to ${symbol}500.00 available`} onMax={() => setV('500')} onToggleCurrency={() => setCur((c) => (c + 1) % CURRENCIES.length)} className="w-full" /> );}Usage
Hero numeric entry. Set editable={false} when a NumericKeypad drives it.
API
<AmountInput value onChangeText symbol helper? onMax? onToggleCurrency? error? editable? />Get it
Already in every copy of the native kit:
import { AmountInput } from '@/components/kit/amount-input';Details
- Exports
AmountInput- Packages
- lucide-react-native@^1.21.0
- Installs with
- @halftone-native/icon, @halftone-native/lib-haptics, @halftone-native/lib-utils, @halftone-native/text
- Also searched as
- money, currency, quantity, hero field, large number
- Registry JSON
- /r/native/amount-input.json
function AmountDemo() { const [v, setV] = React.useState('250'); const over = Number(v.replace(',', '.')) > 1200; return ( <AmountInput className="w-full max-w-sm" aria-label="Amount to send" symbol="£" value={v} onChangeText={setV} onMax={() => setV('1200')} helper="Balance £1,200.00" error={over ? 'That’s more than your balance.' : undefined} /> );}Usage
The hero figure on send, trade and deposit pages. Error and helper read under it.
API
<AmountInput value onChangeText symbol helper? onMax? onToggleCurrency? error? />Get it
Already in every copy of the web kit:
import { AmountInput } from '@/components/kit/amount-input';Details
- Exports
AmountInput- Packages
- cn@^0.5.2, lucide-react@^1.52.0
- Also searched as
- money input, currency field
- Registry JSON
- /r/web/amount-input.json
Agents: the whole registry is at /llms.txt.