2023-04-01 06:53:20 +02:00
|
|
|
<script lang="ts">
|
2024-11-14 08:43:25 -06:00
|
|
|
import type { Snippet } from 'svelte';
|
|
|
|
|
|
|
|
|
|
interface Props {
|
2025-06-12 19:06:38 -04:00
|
|
|
rounded?: boolean | 'full';
|
2024-11-14 08:43:25 -06:00
|
|
|
children?: Snippet;
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-12 19:06:38 -04:00
|
|
|
let { rounded = true, children }: Props = $props();
|
2023-04-01 06:53:20 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<span
|
2025-06-12 19:06:38 -04:00
|
|
|
class="bg-primary text-subtle inline-block h-min whitespace-nowrap px-3 py-1 text-center align-baseline text-xs leading-none"
|
2023-07-01 00:50:47 -04:00
|
|
|
class:rounded-md={rounded === true}
|
|
|
|
|
class:rounded-full={rounded === 'full'}
|
2023-04-01 06:53:20 +02:00
|
|
|
>
|
2024-11-14 08:43:25 -06:00
|
|
|
{@render children?.()}
|
2023-04-01 06:53:20 +02:00
|
|
|
</span>
|