feat: add Badge component

This commit is contained in:
2026-02-05 14:49:00 +05:00
parent b2e3cf528c
commit 7ebbc85e3a
2 changed files with 27 additions and 1 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
<script lang="ts">
import Badge from "$components/ui/Badge.svelte";
import IconArrowLeft from "$components/ui/Icons/IconArrowLeft.svelte";
import IconArrowRight from "$components/ui/Icons/IconArrowRight.svelte";
import Card from "./Card.svelte";
@@ -8,7 +9,7 @@
<Card title="Фоновое изображение">фоновое изображение</Card>
{#snippet panelTitle()}
Панели <span class="badge" id="panelCount">0</span>
Панели <Badge text="0" />
{/snippet}
{#snippet panelControls()}