About
An amount in the currency it is counted in, in one card: the figure, the currency's pill and a list to choose from.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds CurrencyInput to your project and fits it to your theme.
Code
How CurrencyInput is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
'use client';
import { CurrencyInput, type CurrencyOption } from '@/components/ui/panel-currency-input';
const CURRENCIES: CurrencyOption[] = [
{ code: 'USD', name: 'US dollar', symbol: '$', color: 'chart-2' },
{ code: 'EUR', name: 'Euro', symbol: '€', color: 'chart-1' },
{ code: 'GBP', name: 'Pound sterling', symbol: '£', color: 'chart-4' },
{ code: 'JPY', name: 'Japanese yen', symbol: '¥', decimals: 0, color: 'chart-5' },
];
export default function CurrencyInputOverview() {
return <CurrencyInput currencies={CURRENCIES} label="Amount" defaultValue={{ code: 'USD', amount: 250 }} />;
}








