feat(web): tailwind css (#1147)
This commit is contained in:
@@ -33,14 +33,14 @@ const FloatingLabelInput = forwardRef(
|
||||
|
||||
const BASE_CLASSNAME = 'relative bg-default'
|
||||
|
||||
const LABEL_CLASSNAME = `hidden absolute ${!focused ? 'color-neutral' : 'color-info'} ${
|
||||
focused || value ? 'flex top-0 left-2 pt-1.5 px-1' : ''
|
||||
} ${isInvalid ? 'color-danger' : ''} ${labelClassName}`
|
||||
const LABEL_CLASSNAME = `absolute ${!focused ? 'text-neutral' : 'text-info'} ${
|
||||
focused || value ? 'flex top-0 left-2 pt-1.5 px-1' : 'hidden'
|
||||
} ${isInvalid ? 'text-danger' : ''} ${labelClassName}`
|
||||
|
||||
const INPUT_CLASSNAME = `w-full h-full ${
|
||||
focused || value ? 'pt-6 pb-2' : 'py-2.5'
|
||||
} px-3 text-input border-1 border-solid border-main rounded placeholder-medium text-input focus:ring-info ${
|
||||
isInvalid ? 'border-danger placeholder-dark-red' : ''
|
||||
} px-3 text-sm border border-solid border-border rounded placeholder:font-medium focus:ring-info ${
|
||||
isInvalid ? 'border-danger placeholder:text-danger' : ''
|
||||
} ${inputClassName}`
|
||||
|
||||
const handleFocus = () => setFocused(true)
|
||||
|
||||
Reference in New Issue
Block a user