blob: 69fddd1a2b707fa0ec91167fb7d806087dd75d95 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<script lang="ts">
import { DropdownMenu as DropdownMenuPrimitive } from 'bits-ui'
import { cn } from '$utils/ui'
type $$Props = DropdownMenuPrimitive.LabelProps & {
inset?: boolean
}
let className: $$Props['class'] = undefined
export let inset: $$Props['inset'] = undefined
export { className as class }
</script>
<DropdownMenuPrimitive.Label
class={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}
{...$$restProps}
>
<slot />
</DropdownMenuPrimitive.Label>
|