mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-26 16:22:53 +00:00
19 lines
602 B
Svelte
19 lines
602 B
Svelte
<script lang='ts'>
|
|
import { Command as CommandPrimitive } from 'cmdk-sv'
|
|
|
|
import { cn } from '$lib/utils.js'
|
|
type $$Props = CommandPrimitive.GroupProps
|
|
|
|
let className: $$Props['class'] = ''
|
|
export { className as class }
|
|
</script>
|
|
|
|
<CommandPrimitive.Group
|
|
class={cn(
|
|
'text-foreground [&_[data-cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[data-cmdk-group-heading]]:px-2 [&_[data-cmdk-group-heading]]:py-1.5 [&_[data-cmdk-group-heading]]:text-xs [&_[data-cmdk-group-heading]]:font-medium',
|
|
className
|
|
)}
|
|
{...$$restProps}
|
|
>
|
|
<slot />
|
|
</CommandPrimitive.Group>
|