Skip to content

Commit 2ff1848

Browse files
committed
more...
1 parent db01ace commit 2ff1848

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/components/Input.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
7070
{customPrefix && (
7171
<div
7272
className={cn(
73-
inputVariants({
74-
prefixSuffixVariant: error ? "error" : "default",
75-
}),
76-
"flex h-[42px] w-auto rounded-l-md bg-white px-3 py-2 text-sm ",
77-
"border items-center whitespace-nowrap",
73+
"flex h-[42px] w-auto items-center whitespace-nowrap rounded-l-md border border-r-0 bg-white px-3 py-2 text-sm",
74+
error
75+
? "border-red-500/50 text-red-500 dark:border-red-500/50"
76+
: "border-default text-gray-500 dark:bg-nb-gray-900 dark:text-nb-gray-300",
7877
props.disabled && "opacity-20",
7978
prefixClassName,
8079
)}

0 commit comments

Comments
 (0)