Skip to content

Commit 8417fdd

Browse files
committed
fix: SfInput
1 parent acb59be commit 8417fdd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

packages/qwik-storefront-ui/src/components/SfInput/SfInput.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export const SfInput = component$<SfInputProps>(
1313
onChange$,
1414
size = SfInputSize.base,
1515
invalid,
16-
showSlotPrefix,
17-
showSlotSuffix,
16+
slotPrefix,
17+
slotSuffix,
1818
class: _class,
1919
wrapperClass,
2020
ref,
@@ -30,7 +30,7 @@ export const SfInput = component$<SfInputProps>(
3030
]}
3131
data-testid="input"
3232
>
33-
{showSlotPrefix && (
33+
{slotPrefix && (
3434
<span class="pr-2">
3535
<Slot name="prefix" />
3636
</span>
@@ -48,7 +48,7 @@ export const SfInput = component$<SfInputProps>(
4848
{...attributes}
4949
onChange$={onChange$}
5050
/>
51-
{showSlotSuffix && (
51+
{slotSuffix && (
5252
<span class="pl-2">
5353
<Slot name="suffix" />
5454
</span>

packages/qwik-storefront-ui/src/components/SfInput/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export type SfInputProps = Omit<
1313
size?: `${SfInputSize}`;
1414
invalid?: boolean;
1515
wrapperClass?: string;
16-
showSlotPrefix?: boolean;
17-
showSlotSuffix?: boolean;
16+
slotPrefix?: boolean;
17+
slotSuffix?: boolean;
1818
ref?: Signal<Element | undefined>;
1919
onChange$?: PropFunction<(event: QwikChangeEvent<HTMLInputElement>) => void>;
2020
};

0 commit comments

Comments
 (0)