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/info-tooltip.tsx | 2 +- apps/web/components/ui/input.tsx | 42 +++++++++++++++++++++++++-------- 2 files changed, 33 insertions(+), 11 deletions(-) (limited to 'apps/web/components/ui') diff --git a/apps/web/components/ui/info-tooltip.tsx b/apps/web/components/ui/info-tooltip.tsx index 0254aa80..4dd97199 100644 --- a/apps/web/components/ui/info-tooltip.tsx +++ b/apps/web/components/ui/info-tooltip.tsx @@ -23,7 +23,7 @@ export default function InfoTooltip({ {variant === "tip" ? ( ) : ( 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