From cd632f295d896100207e1b02bfeb574175c07633 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 20 Apr 2025 23:49:24 +0000 Subject: ui(web): Reduce shadows, lighten some fonts, and a smaller editor. #1261 --- apps/web/components/ui/input.tsx | 42 ++++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'apps/web/components/ui/input.tsx') diff --git a/apps/web/components/ui/input.tsx b/apps/web/components/ui/input.tsx index 5543446c..09f9def9 100644 --- a/apps/web/components/ui/input.tsx +++ b/apps/web/components/ui/input.tsx @@ -1,20 +1,42 @@ import * as React from "react"; import { cn } from "@/lib/utils"; +import { LucideIcon } from "lucide-react"; -export type InputProps = React.InputHTMLAttributes; +export interface InputProps + extends React.InputHTMLAttributes { + startIcon?: LucideIcon; + endIcon?: LucideIcon; +} const Input = React.forwardRef( - ({ className, type, ...props }, ref) => { + ({ className, type, startIcon, endIcon, ...props }, ref) => { + const StartIcon = startIcon; + const EndIcon = endIcon; + return ( - + {StartIcon && ( +
+ +
+ )} + + {EndIcon && ( +
+ +
)} - ref={ref} - {...props} - /> + ); }, ); -- cgit v1.2.3-70-g09d2