summaryrefslogtreecommitdiff
path: root/apps/web/src/components/ui/form.tsx
diff options
context:
space:
mode:
authorHyteq <DerpsDer.es@gmail.com>2025-06-23 09:06:42 +0300
committerHyteq <DerpsDer.es@gmail.com>2025-06-23 09:06:42 +0300
commit589f4a20a170c221203f7515622c38900e2efde4 (patch)
treed5108a909c976b598dc46d53fc6c6dbfd28e8068 /apps/web/src/components/ui/form.tsx
parent79b8275bc0feef2aa32c95ca652d1160a3aeadbc (diff)
downloadopencut-589f4a20a170c221203f7515622c38900e2efde4.tar.gz
feat: migrated to latest radix to improve performance / tree-shaking
Diffstat (limited to 'apps/web/src/components/ui/form.tsx')
-rw-r--r--apps/web/src/components/ui/form.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/web/src/components/ui/form.tsx b/apps/web/src/components/ui/form.tsx
index d8328f55..cb4f53a9 100644
--- a/apps/web/src/components/ui/form.tsx
+++ b/apps/web/src/components/ui/form.tsx
@@ -1,8 +1,8 @@
"use client";
import * as React from "react";
-import * as LabelPrimitive from "@radix-ui/react-label";
-import { Slot } from "@radix-ui/react-slot";
+import { Label as LabelPrimitive, Slot as SlotPrimitive } from "radix-ui";
+
import {
Controller,
ControllerProps,
@@ -104,14 +104,14 @@ const FormLabel = React.forwardRef<
FormLabel.displayName = "FormLabel";
const FormControl = React.forwardRef<
- React.ElementRef<typeof Slot>,
- React.ComponentPropsWithoutRef<typeof Slot>
+ React.ElementRef<typeof SlotPrimitive.Slot>,
+ React.ComponentPropsWithoutRef<typeof SlotPrimitive.Slot>
>(({ ...props }, ref) => {
const { error, formItemId, formDescriptionId, formMessageId } =
useFormField();
return (
- <Slot
+ <SlotPrimitive.Slot
ref={ref}
id={formItemId}
aria-describedby={