mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 15:38:24 -08:00
19 lines
456 B
Svelte
19 lines
456 B
Svelte
<script lang="ts">
|
|
import type { Snippet } from 'svelte';
|
|
|
|
interface Props {
|
|
rounded?: boolean | 'full';
|
|
children?: Snippet;
|
|
}
|
|
|
|
let { rounded = true, children }: Props = $props();
|
|
</script>
|
|
|
|
<span
|
|
class="bg-primary text-subtle inline-block h-min whitespace-nowrap px-3 py-1 text-center align-baseline text-xs leading-none"
|
|
class:rounded-md={rounded === true}
|
|
class:rounded-full={rounded === 'full'}
|
|
>
|
|
{@render children?.()}
|
|
</span>
|