Next.js Discord

Discord Forum

how to make a an input in a shadcn form into a controlled input

Unanswered
Pacific cod posted this in #help-forum
Open in Discord
Avatar
Pacific codOP
Hi
I want to automatically separate numbers with comma in real time when the user start typing. For this I know a controlled input is required but with a shadcn form every input is already a controlled input. How can I customise theses inputs and add my state

0 Replies