Skip to content

Commit

Permalink
[feat](@svelteui/core): slot for title in Modal
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #435
  • Loading branch information
BeeMargarida committed Jul 28, 2023
1 parent c6be295 commit a4ecac8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/svelteui-core/src/components/Modal/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,11 @@
>
{#if title || withCloseButton}
<div class={classes.header}>
<Text id={titleId} class={classes.title}>
{title}
</Text>
<slot name="title">
<Text id={titleId} class={classes.title}>
{title}
</Text>
</slot>

{#if withCloseButton}
<CloseButton
Expand Down

0 comments on commit a4ecac8

Please sign in to comment.