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

Commit 7eed442

Browse files
authored
fix: correctly propagate inputstyle through props (#96)
* fix: correctly propagate inputstyle through props * fix: adjust label class for full width in Input component
1 parent aa5af30 commit 7eed442

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/extenders/PaginatedSelect.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export default function PaginatedSelect({
248248
type={"string"}
249249
state={[search, onSearch]}
250250
placeholder={"Search a token"}
251-
className="w-full h-[fit-content]"
251+
className={mergeClass(base(), "w-full h-[fit-content]")}
252252
size="lg"
253253
prefix={<Icon remix="RiSearch2Line" />}
254254
/>

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("flex-col", className)} size={"xs"}>
70-
<label className={mergeClass(inputStyles({ look, size }), className, "flex-col flex")} htmlFor="input">
69+
<Group className={mergeClass(inputStyles({ look, size }), "flex-col", className)} size={"xs"}>
70+
<label className={mergeClass(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)