mirror of
https://github.com/BradNut/boredgame
synced 2025-09-08 17:40:22 +00:00
18 lines
471 B
Svelte
18 lines
471 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import type { RadioGroupRootProps } from "radix-svelte";
|
||
|
|
import { RadioGroup as RadioGroupPrimitive } from "radix-svelte";
|
||
|
|
import { cn } from "$lib/utils";
|
||
|
|
|
||
|
|
let className: string | undefined | null = undefined;
|
||
|
|
export { className as class };
|
||
|
|
export let value: RadioGroupRootProps["value"] = undefined;
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<RadioGroupPrimitive.Root
|
||
|
|
bind:value
|
||
|
|
class={cn("grid gap-2", className)}
|
||
|
|
{...$$restProps}
|
||
|
|
>
|
||
|
|
<slot />
|
||
|
|
</RadioGroupPrimitive.Root>
|