Replies: 2 comments 1 reply
-
Hi @tjhoo, |
Beta Was this translation helpful? Give feedback.
0 replies
-
@tjhoo @chanthinh Here is exactly what you need - https://substack.com/profile/200733325-runespoor-engineering/note/c-66073144 Just put zod schema inside the context over the Form and use this hook inside |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I have a component that wrap the shadcn ui form field with
react-hook-form
like this,Note that I have to add a
required
attribute in order to render the asterick when it is true.Is there a better way, for example to retrieve this
required
fromreact-hook-form
itself than adding arequired
atttribute?Beta Was this translation helpful? Give feedback.
All reactions