Skip to content

Commit 1fc1bdc

Browse files
feature(NumberStepper): Add slots to passthrough prefix and suffix to the NumberStepper component (#629)
* feature(NumberStepper): Add slots to passthrough prefix and suffix * fix(NumberStepper): Clean up slot markup formatting * feature(NumberStepper): Create changeset for adding slots to passthrough prefix and suffix * Update smart-garlics-camp.md --------- Co-authored-by: Sean Lynch <[email protected]>
1 parent a43b5ae commit 1fc1bdc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/smart-garlics-camp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'svelte-ux': patch
3+
---
4+
5+
feat(NumberStepper): Add slots to passthrough prefix and suffix to the NumberStepper component

packages/svelte-ux/src/lib/components/NumberStepper.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
disabled={min != null && value <= min}
4343
/>
4444
</div>
45+
<div slot="prefix"><slot name="prefix" /></div>
46+
<div slot="suffix"><slot name="suffix" /></div>
4547
<div slot="append">
4648
<Button
4749
icon={mdiPlus}

0 commit comments

Comments
 (0)