Skip to content

Commit 9fb41b3

Browse files
committed
chore: updated props in badge component
Signed-off-by: Evzen Gasta <[email protected]>
1 parent 9ee92b9 commit 9fb41b3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/frontend/src/lib/Badge.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ import Fa from 'svelte-fa';
55
interface Props {
66
icon: IconDefinition;
77
content: string;
8-
background?: string;
8+
class?: string;
99
}
1010
11-
let { icon, content, background = 'bg-[var(--pd-label-bg)]' }: Props = $props();
11+
let { icon, content, class: classes = 'bg-[var(--pd-label-bg)]' }: Props = $props();
1212
</script>
1313

1414
<div
15-
class="{background} rounded-md px-2 py-1 flex flex-row w-min h-min text-[var(--pd-label-text)] text-nowrap items-center text-sm">
15+
class="{classes} rounded-md px-2 py-1 flex flex-row w-min h-min text-[var(--pd-label-text)] text-nowrap items-center text-sm">
1616
{#if icon}
1717
<Fa class="mr-2" icon={icon} />
1818
{/if}

0 commit comments

Comments
 (0)