We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd49319 commit a638504Copy full SHA for a638504
src/lib/typography/Hr.svelte
@@ -1,8 +1,9 @@
1
<script lang="ts">
2
import type { Snippet } from 'svelte';
3
import { twMerge } from 'tailwind-merge';
4
+ import type { HTMLAttributes } from 'svelte/elements';
5
- interface Props {
6
+ interface Props extends HTMLAttributes<HTMLElement>{
7
children?: Snippet;
8
icon?: boolean;
9
divClass?: string | undefined;
@@ -40,7 +41,7 @@
40
41
</div>
42
43
{:else}
- <hr class={horizontalCls} />
44
+ <hr class={horizontalCls} {...attributes} />
45
{/if}
46
47
<!--
0 commit comments