[ui][text area] implementation

This commit is contained in:
Yangshun Tay
2022-10-08 10:50:56 +08:00
parent d9880dbff1
commit 2f13d5f009
5 changed files with 290 additions and 3 deletions

View File

@ -129,7 +129,7 @@ function TextInput(
className={clsx(
isLabelHidden
? 'sr-only'
: 'block text-sm font-medium text-slate-700',
: 'mb-1 block text-sm font-medium text-slate-700',
)}
htmlFor={id}>
{label}
@ -143,7 +143,6 @@ function TextInput(
<div
className={clsx(
'flex w-full overflow-hidden rounded-md border focus-within:ring-1 sm:text-sm',
!isLabelHidden && 'mt-1',
disabled && 'pointer-events-none select-none bg-slate-100',
containerClass,
)}>