@zod-to-form/react 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -102,21 +102,22 @@ Shadcn-oriented component map export.
|
|
|
102
102
|
|
|
103
103
|
## Runtime Component Config
|
|
104
104
|
|
|
105
|
-
Use `componentConfig` to map
|
|
105
|
+
Use `componentConfig` to map specific field paths to custom components and apply per-component overrides at runtime.
|
|
106
106
|
|
|
107
107
|
```tsx
|
|
108
108
|
import { ZodForm } from '@zod-to-form/react';
|
|
109
109
|
import type { RuntimeComponentConfig } from '@zod-to-form/react';
|
|
110
110
|
|
|
111
111
|
const componentConfig: RuntimeComponentConfig = {
|
|
112
|
-
components:
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
112
|
+
components: {
|
|
113
|
+
source: '@/components/form-components',
|
|
114
|
+
overrides: {
|
|
115
|
+
TextareaInput: { controlled: false },
|
|
116
|
+
},
|
|
116
117
|
},
|
|
117
118
|
fields: {
|
|
118
119
|
'profile.bio': {
|
|
119
|
-
|
|
120
|
+
component: 'TextareaInput',
|
|
120
121
|
props: { rows: 6 }
|
|
121
122
|
}
|
|
122
123
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zod-to-form/react",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Runtime <ZodForm> renderer for Zod v4 schemas",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://github.com/pradeepmouli/zod-to-form#readme",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"zod": "^4.3.6"
|
|
53
53
|
},
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@zod-to-form/core": "0.6.
|
|
55
|
+
"@zod-to-form/core": "0.6.1"
|
|
56
56
|
},
|
|
57
57
|
"scripts": {
|
|
58
58
|
"build": "tsgo -p tsconfig.build.json",
|