feat: use input type number for counter

This commit is contained in:
2023-08-11 17:17:38 +02:00
parent 8d53e4cd68
commit 3aa96dcef3
2 changed files with 18 additions and 20 deletions

View File

@ -18,6 +18,7 @@ export default function Counter(props: CounterProps) {
</Button>
<input
class="text-3xl bg-transparent inline text-center -mx-4"
type="number"
size={props.count.toString().length}
value={props.count}
onInput={(ev) => props.count.value = ev.target?.value}