asi-calculator/components/FormAmount.tsx
2024-03-30 00:35:26 +00:00

22 lines
401 B
TypeScript

import styles from './FormAmount.module.css'
export function FormAmount({
amount,
setAmount
}: {
amount: number
setAmount: (amount: number) => void
}) {
return (
<form className={styles.form}>
<input
className={styles.input}
type="text"
value={amount}
onChange={(e) => setAmount(Number(e.target.value))}
size={1}
/>
</form>
)
}