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 9ee92b9 commit 9fb41b3Copy full SHA for 9fb41b3
packages/frontend/src/lib/Badge.svelte
@@ -5,14 +5,14 @@ import Fa from 'svelte-fa';
5
interface Props {
6
icon: IconDefinition;
7
content: string;
8
- background?: string;
+ class?: string;
9
}
10
11
-let { icon, content, background = 'bg-[var(--pd-label-bg)]' }: Props = $props();
+let { icon, content, class: classes = 'bg-[var(--pd-label-bg)]' }: Props = $props();
12
</script>
13
14
<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">
+ 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">
16
{#if icon}
17
<Fa class="mr-2" icon={icon} />
18
{/if}
0 commit comments