mirror of
https://github.com/bartvdbraak/omnidash.git
synced 2025-04-27 23:41:21 +00:00
19 lines
432 B
Svelte
19 lines
432 B
Svelte
<script lang="ts">
|
|
import { Label as LabelPrimitive } from 'bits-ui';
|
|
import { cn } from '$lib/utils';
|
|
|
|
type $$Props = LabelPrimitive.Props;
|
|
|
|
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}
|
|
>
|
|
<slot />
|
|
</LabelPrimitive.Root>
|