diff --git a/packages/atoms/src/components/ui/input.tsx b/packages/atoms/src/components/ui/input.tsx new file mode 100644 index 0000000000..cf43f86865 --- /dev/null +++ b/packages/atoms/src/components/ui/input.tsx @@ -0,0 +1,21 @@ +import { cn } from "@/lib/utils"; +import * as React from "react"; + +export type InputProps = React.InputHTMLAttributes; + +const Input = React.forwardRef(({ className, type, ...props }, ref) => { + return ( + + ); +}); +Input.displayName = "Input"; + +export { Input }; diff --git a/packages/atoms/src/components/ui/label.tsx b/packages/atoms/src/components/ui/label.tsx new file mode 100644 index 0000000000..4a1503e04c --- /dev/null +++ b/packages/atoms/src/components/ui/label.tsx @@ -0,0 +1,18 @@ +import { cn } from "@/lib/utils"; +import * as LabelPrimitive from "@radix-ui/react-label"; +import { cva, type VariantProps } from "class-variance-authority"; +import * as React from "react"; + +const labelVariants = cva( + "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70" +); + +const Label = React.forwardRef< + React.ElementRef, + React.ComponentPropsWithoutRef & VariantProps +>(({ className, ...props }, ref) => ( + +)); +Label.displayName = LabelPrimitive.Root.displayName; + +export { Label };