26 lines
460 B
Svelte
26 lines
460 B
Svelte
<script lang="ts">
|
|
interface Props {
|
|
text: string | number;
|
|
}
|
|
|
|
let { text }: Props = $props();
|
|
</script>
|
|
|
|
<span class="badge">{text}</span>
|
|
|
|
<style>
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 20px;
|
|
height: 20px;
|
|
padding: 0 6px;
|
|
background: var(--action-primary);
|
|
color: var(--text-action);
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
}
|
|
</style>
|