Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit 7bba4dd

Browse files
authored
fix: Correct label class merging in Input component (#99)
1 parent a183e6d commit 7bba4dd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/primitives/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ function Input({ look, size, state, inputClassName, className, ...props }: Input
6666
const { header, footer, prefix, suffix, label, hint, error, ...rest } = props;
6767
if (extensions.some(extension => !!props?.[extension]))
6868
return (
69-
<Group className={mergeClass(inputStyles({ look, size }), "flex-col", className)} size={"xs"}>
70-
<label className={mergeClass(className, "w-full flex-col flex")} htmlFor="input">
69+
<Group className={mergeClass("flex-col", className)} size={"xs"}>
70+
<label className={mergeClass(inputStyles({ look, size }), className, "w-full flex-col flex")} htmlFor="input">
7171
{header && (
7272
<label htmlFor="input" className="w-full flex">
7373
{header}

0 commit comments

Comments
 (0)