File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
packages/qwik-storefront-ui/src/components/SfInput Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff 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} ;
You can’t perform that action at this time.
0 commit comments