20 lines
412 B
Svelte
20 lines
412 B
Svelte
<script lang="ts">
|
|||
|
|
import { RadioGroup as RadioGroupPrimitive } from 'bits-ui';
|
||
|
|
import { cn } from '../../tools';
|
||
|
|
|
||
|
|
let {
|
||
|
|
ref = $bindable(null),
|
||
|
|
class: className,
|
||
|
|
value = $bindable(''),
|
||
|
|
...restProps
|
||
|
|
}: RadioGroupPrimitive.RootProps = $props();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<RadioGroupPrimitive.Root
|
||
|
|
bind:ref
|
||
|
|
bind:value
|
||
|
|
data-slot="radio-group"
|
||
|
|
class={cn('grid gap-3', className)}
|
||
|
|
{...restProps}
|
||
|
|
/>
|