refactor: move components/elements to elements/ (#22091)

This commit is contained in:
Jason Rasmussen
2025-09-16 14:31:22 -04:00
committed by GitHub
parent 2bf484c91c
commit 7ce1d73c20
105 changed files with 157 additions and 158 deletions
+18
View File
@@ -0,0 +1,18 @@
<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>