Skip to content

Commit

Permalink
Add <slot>, closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Feb 26, 2024
1 parent 1bc7d31 commit 2c1dae9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## Next
- Add component slot, for adding your own child elements
- Don't clamp time of day when settig date/month/year
- Fix time field sometimes showing a value outside `min`/`max`
- Fix time field losing highlight after pressing left/right arrow keys
Expand Down
4 changes: 3 additions & 1 deletion src/lib/DateInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@
{locale}
{browseWithoutSelecting}
{timePrecision}
/>
>
<slot />
</DateTimePicker>
</div>
{/if}
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/lib/DatePicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,8 @@
{/each}

<TimePicker {timePrecision} bind:browseDate {setTime} />

<slot />
</div>
</div>

Expand Down

0 comments on commit 2c1dae9

Please sign in to comment.