Skip to content

Commit a638504

Browse files
committed
fix: extends svelte/element for Hr
1 parent bd49319 commit a638504

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/typography/Hr.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
<script lang="ts">
22
import type { Snippet } from 'svelte';
33
import { twMerge } from 'tailwind-merge';
4+
import type { HTMLAttributes } from 'svelte/elements';
45
5-
interface Props {
6+
interface Props extends HTMLAttributes<HTMLElement>{
67
children?: Snippet;
78
icon?: boolean;
89
divClass?: string | undefined;
@@ -40,7 +41,7 @@
4041
</div>
4142
</div>
4243
{:else}
43-
<hr class={horizontalCls} />
44+
<hr class={horizontalCls} {...attributes} />
4445
{/if}
4546

4647
<!--

0 commit comments

Comments
 (0)