From 9c1d1c5d2bbb547285b6e440a4138b544d54d5ad Mon Sep 17 00:00:00 2001 From: i701 Date: Fri, 11 Jul 2025 14:41:47 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20add=20floating=20label=20input=20compon?= =?UTF-8?q?ent=20for=20enhanced=20form=20usability=20=E2=9C=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ui/floating-label.tsx | 47 ++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 components/ui/floating-label.tsx diff --git a/components/ui/floating-label.tsx b/components/ui/floating-label.tsx new file mode 100644 index 0000000..9d453cb --- /dev/null +++ b/components/ui/floating-label.tsx @@ -0,0 +1,47 @@ +import * as React from 'react'; +import { Input } from '@/components/ui/input'; +import { Label } from '@/components/ui/label'; +import { cn } from '@/lib/utils'; + +export interface InputProps extends React.InputHTMLAttributes { } + +const FloatingInput = React.forwardRef( + ({ className, ...props }, ref) => { + return ; + }, +); +FloatingInput.displayName = 'FloatingInput'; + +const FloatingLabel = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef +>(({ className, ...props }, ref) => { + return ( +