Replies: 2 comments
-
|
Here is the reason why that wrapper is being set aside in favor of direct integration.It removes the Black Box Freedom to choose your tools Easier for complex forms Better for copy-pasting (Blocks) If this explanation of the helps you understand the new direction, please consider marking this as the accepted answer! |
Beta Was this translation helpful? Give feedback.
-
|
@nmthuann the in october 2025, shadcn introduced the
the current form docs present three paths: RHF + Field, TanStack Form + Field, and server actions. the old the shift is: layout components (Field) are separated from form state management. you bring your own form library, shadcn provides the accessible field structure. related: form redesign discussion #5332 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
Previously, shadcn/ui examples commonly used the
<Form>component from@/components/ui/formto build forms. However, in more recent examples and documentation, the recommended approach seems to integrate fields directly with form frameworks like React Hook Form or TanStack Form.I’d like to understand the reason behind this change. Is it to improve flexibility, reduce abstraction, or better support multiple form libraries?
I’d appreciate any insights from the community. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions