mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-19 01:12:17 +03:00
22 lines
506 B
Svelte
22 lines
506 B
Svelte
<script lang="ts">
|
|
import { Label as LabelPrimitive } from 'bits-ui';
|
|
import { cn } from '$lib/utils/style.js';
|
|
|
|
type $$Props = LabelPrimitive.Props;
|
|
type $$Events = LabelPrimitive.Events;
|
|
|
|
let className: $$Props['class'] = undefined;
|
|
export { className as class };
|
|
</script>
|
|
|
|
<LabelPrimitive.Root
|
|
class={cn(
|
|
'mb-3 block text-sm leading-none font-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70',
|
|
className
|
|
)}
|
|
{...$$restProps}
|
|
on:mousedown
|
|
>
|
|
<slot />
|
|
</LabelPrimitive.Root>
|