wireadmin/web/src/lib/components/ui/label/label.svelte
2023-12-19 13:21:11 +03:30

22 lines
502 B
Svelte

<script lang="ts">
import { Label as LabelPrimitive } from 'bits-ui';
import { cn } from '$lib/utils';
type $$Props = LabelPrimitive.Props;
type $$Events = LabelPrimitive.Events;
let className: $$Props['class'] = undefined;
export { className as class };
</script>
<LabelPrimitive.Root
class={cn(
'text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
className,
)}
{...$$restProps}
on:mousedown
>
<slot />
</LabelPrimitive.Root>