You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This approach is very useful when you are working on a large project with a lot of files and folders and it can be done by updating the `babel.config.js` file and `tsconfig.json` file to the following:
Copy file name to clipboardExpand all lines: docs/src/content/docs/ui-and-theme/Forms.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,12 @@ As we mention in the components section of the documentation [here](../component
20
20
21
21
Here is the complete code of our `ControlledInput` when we use `useController` hook from react-hook-form to handle form state and validation rules:
22
22
23
-
<CodeBlockfile="src/ui/core/input.tsx" />
23
+
<CodeBlockfile="src/ui/input.tsx" />
24
24
25
25
If you want to create your own controlled component, you just need to make sure your component props type extends from `InputControllerType` the same way we are using it with `ControlledInput`.
26
26
Here is another example of a Select input we create using the same approach as `ControlledInput`:
0 commit comments