🎨 style: make the input width to full
This commit is contained in:
parent
e0c5895e9c
commit
6db5871868
@ -8,6 +8,8 @@ export const inputTheme = tv(
|
|||||||
'items-center',
|
'items-center',
|
||||||
'rounded-lg',
|
'rounded-lg',
|
||||||
'relative',
|
'relative',
|
||||||
|
'gap-2',
|
||||||
|
'w-full',
|
||||||
'placeholder:text-elements-disabled',
|
'placeholder:text-elements-disabled',
|
||||||
'disabled:cursor-not-allowed',
|
'disabled:cursor-not-allowed',
|
||||||
'disabled:bg-controls-disabled',
|
'disabled:bg-controls-disabled',
|
||||||
@ -27,7 +29,7 @@ export const inputTheme = tv(
|
|||||||
'disabled:shadow-none',
|
'disabled:shadow-none',
|
||||||
'disabled:border-none',
|
'disabled:border-none',
|
||||||
],
|
],
|
||||||
icon: ['text-elements-mid-em'],
|
icon: ['text-elements-low-em'],
|
||||||
iconContainer: [
|
iconContainer: [
|
||||||
'absolute',
|
'absolute',
|
||||||
'inset-y-0',
|
'inset-y-0',
|
||||||
|
@ -87,12 +87,12 @@ export const Input = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="space-y-2">
|
<div className="flex flex-col gap-2 w-full">
|
||||||
{renderLabels}
|
{renderLabels}
|
||||||
<div className={containerCls({ class: className })}>
|
<div className={containerCls({ class: className })}>
|
||||||
{leftIcon && renderLeftIcon}
|
{leftIcon && renderLeftIcon}
|
||||||
<input
|
<input
|
||||||
className={cn(inputCls({ class: 'w-80' }), {
|
className={cn(inputCls(), {
|
||||||
'pl-10': leftIcon,
|
'pl-10': leftIcon,
|
||||||
})}
|
})}
|
||||||
{...props}
|
{...props}
|
||||||
|
Loading…
Reference in New Issue
Block a user