Skip to content

Commit 3fbc66a

Browse files
committed
fix(FloatingLabelInput): add disabled style
1 parent bc0d434 commit 3fbc66a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/forms/floating-label/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type FloatingLabelInputVaratiants = VariantProps<typeof floatingLabelInpu
77
export const floatingLabelInput = tv({
88
slots: {
99
base: "relative",
10-
input: "block w-full text-sm text-gray-900 bg-transparent appearance-none dark:text-white focus:outline-hidden focus:ring-0 peer",
10+
input: "block w-full text-sm text-gray-900 bg-transparent appearance-none dark:text-white focus:outline-hidden focus:ring-0 peer disabled:cursor-not-allowed disabled:opacity-50",
1111
label: "absolute text-sm duration-300 transform scale-75 z-10 origin-left rtl:origin-right peer-placeholder-shown:scale-100 peer-focus:scale-75",
1212
close: "absolute right-2 top-1/2 -translate-y-1/2 text-gray-400 hover:text-black",
1313
combo: "absolute top-full right-0 left-0 z-10 mt-1 max-h-60 overflow-y-auto rounded-md border border-gray-200 bg-white shadow-lg dark:border-gray-700 dark:bg-gray-800",

0 commit comments

Comments
 (0)