diff options
Diffstat (limited to 'frontend/src/lib/components/ui/select/select-group-heading.svelte')
| -rw-r--r-- | frontend/src/lib/components/ui/select/select-group-heading.svelte | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/frontend/src/lib/components/ui/select/select-group-heading.svelte b/frontend/src/lib/components/ui/select/select-group-heading.svelte new file mode 100644 index 0000000..1fab5f0 --- /dev/null +++ b/frontend/src/lib/components/ui/select/select-group-heading.svelte @@ -0,0 +1,21 @@ +<script lang="ts"> + import { Select as SelectPrimitive } from "bits-ui"; + import { cn } from "$lib/utils.js"; + import type { ComponentProps } from "svelte"; + + let { + ref = $bindable(null), + class: className, + children, + ...restProps + }: ComponentProps<typeof SelectPrimitive.GroupHeading> = $props(); +</script> + +<SelectPrimitive.GroupHeading + bind:ref + data-slot="select-group-heading" + class={cn("text-muted-foreground px-2 py-1.5 text-xs", className)} + {...restProps} +> + {@render children?.()} +</SelectPrimitive.GroupHeading> |
