feat: better components
This commit is contained in:
17
client/src/lib/ui/sheet/sheet-title.svelte
Normal file
17
client/src/lib/ui/sheet/sheet-title.svelte
Normal file
@ -0,0 +1,17 @@
|
||||
<script lang="ts">
|
||||
import { Dialog as SheetPrimitive } from "bits-ui";
|
||||
import { cn } from "$lib/utils.js";
|
||||
|
||||
let {
|
||||
ref = $bindable(null),
|
||||
class: className,
|
||||
...restProps
|
||||
}: SheetPrimitive.TitleProps = $props();
|
||||
</script>
|
||||
|
||||
<SheetPrimitive.Title
|
||||
bind:ref
|
||||
data-slot="sheet-title"
|
||||
class={cn("text-text font-semibold", className)}
|
||||
{...restProps}
|
||||
/>
|
Reference in New Issue
Block a user