Skip to content

Commit 98f61f9

Browse files
committed
Build registry
1 parent 63aecaf commit 98f61f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shadcn/registry/autoform.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
{
108108
"path": "autoform/components/BooleanField.tsx",
109109
"target": "components/ui/autoform/components/BooleanField.tsx",
110-
"content": "import React from \"react\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { AutoFormFieldProps } from \"@autoform/react\";\nimport { Label } from \"../../label\";\n\nexport const BooleanField: React.FC<AutoFormFieldProps> = ({\n field,\n label,\n id,\n inputProps,\n value\n}) => (\n <div className=\"flex items-center space-x-2\">\n <Checkbox\n id={id}\n onCheckedChange={(checked) => {\n // react-hook-form expects an event object\n const event = {\n target: {\n name: field.key,\n value: checked,\n },\n };\n inputProps.onChange(event);\n }}\n checked={value}\n />\n <Label htmlFor={id}>\n {label}\n {field.required && <span className=\"text-destructive\"> *</span>}\n </Label>\n </div>\n);\n",
110+
"content": "import React from \"react\";\nimport { Checkbox } from \"@/components/ui/checkbox\";\nimport { AutoFormFieldProps } from \"@autoform/react\";\nimport { Label } from \"../../label\";\n\nexport const BooleanField: React.FC<AutoFormFieldProps> = ({\n field,\n label,\n id,\n inputProps,\n}) => (\n <div className=\"flex items-center space-x-2\">\n <Checkbox\n id={id}\n onCheckedChange={(checked) => {\n // react-hook-form expects an event object\n const event = {\n target: {\n name: field.key,\n value: checked,\n },\n };\n inputProps.onChange(event);\n }}\n checked={inputProps.value}\n />\n <Label htmlFor={id}>\n {label}\n {field.required && <span className=\"text-destructive\"> *</span>}\n </Label>\n </div>\n);\n",
111111
"type": "registry:ui"
112112
},
113113
{

0 commit comments

Comments
 (0)