diff --git a/package.json b/package.json index 1a21262..de10f1e 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "@fortawesome/free-regular-svg-icons": "^6.7.2", "@fortawesome/free-solid-svg-icons": "^6.7.2", "@fortawesome/react-fontawesome": "^0.2.2", + "@radix-ui/react-label": "^2.1.6", "@radix-ui/react-slot": "^1.2.2", "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", diff --git a/src/components/labeled-input.tsx b/src/components/labeled-input.tsx index af8879e..7b4768a 100644 --- a/src/components/labeled-input.tsx +++ b/src/components/labeled-input.tsx @@ -1,4 +1,5 @@ import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; export default function LabeledInput({ type, @@ -11,17 +12,17 @@ export default function LabeledInput({ placeholder?: string; value?: string; }) { - const randomId = Math.random().toString(36).substring(2, 15); + const elementId = Math.random().toString(36).substring(2, 15); return ( -