Forms¶
Input¶
- getter and setter
type=number¶
Kevin Powell: Number-only inputs aren't so straight-forward - Reminders
<input
type="text" <!-- or type="number": hide the arrow with CSS -->
inputmode="numeric"
pattern="[0-9]+"
>
Type validation with TS and zod¶
Matt Pocock: Blazing Fast Tips: Build ANYTHING with Zod + Generics - Reminders
Last update:
2023-03-20