mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
18 lines
456 B
Svelte
18 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>
|