Amount with currency
A number box with a currency drop-down at its end.
Add it to your project
Or install the packages yourselfTerminal
npm install @mantine/core
First time with Mantine UI? Set it up once.
The code
import { NativeSelect, TextInput } from '@mantine/core';
const data = [
{ value: 'eur', label: '馃嚜馃嚭 EUR' },
{ value: 'usd', label: '馃嚭馃嚫 USD' },
{ value: 'cad', label: '馃嚚馃嚘 CAD' },
{ value: 'gbp', label: '馃嚞馃嚙 GBP' },
{ value: 'aud', label: '馃嚘馃嚭 AUD' },
];
export function CurrencyInput() {
const select = (This comes with paid plans
The code for every component comes with paid plans, along with the rest of the AI toolkit. The first component under each heading is free.