Files
pocket-id/frontend/src/lib/components/ui/label/label.svelte

22 lines
506 B
Svelte
Raw Normal View History

2024-08-12 11:00:25 +02:00
<script lang="ts">
2025-01-19 15:41:16 +01:00
import { Label as LabelPrimitive } from 'bits-ui';
import { cn } from '$lib/utils/style.js';
2024-08-12 11:00:25 +02:00
type $$Props = LabelPrimitive.Props;
type $$Events = LabelPrimitive.Events;
2025-01-19 15:41:16 +01:00
let className: $$Props['class'] = undefined;
2024-08-12 11:00:25 +02:00
export { className as class };
</script>
<LabelPrimitive.Root
class={cn(
2025-01-19 15:41:16 +01:00
'mb-3 block text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
2024-08-12 11:00:25 +02:00
className
)}
{...$$restProps}
on:mousedown
>
<slot />
</LabelPrimitive.Root>