We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db01ace commit 2ff1848Copy full SHA for 2ff1848
src/components/Input.tsx
@@ -70,11 +70,10 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
70
{customPrefix && (
71
<div
72
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",
+ "flex h-[42px] w-auto items-center whitespace-nowrap rounded-l-md border border-r-0 bg-white px-3 py-2 text-sm",
+ error
+ ? "border-red-500/50 text-red-500 dark:border-red-500/50"
+ : "border-default text-gray-500 dark:bg-nb-gray-900 dark:text-nb-gray-300",
78
props.disabled && "opacity-20",
79
prefixClassName,
80
)}
0 commit comments