diff --git a/packages/ui/src/components/radio-group/index.ts b/packages/ui/src/components/radio-group/index.ts new file mode 100644 index 000000000..b7da1d7b6 --- /dev/null +++ b/packages/ui/src/components/radio-group/index.ts @@ -0,0 +1,15 @@ +import { RadioGroup as RadioGroupPrimitive } from 'bits-ui' + +import Root from './radio-group.svelte' +import Item from './radio-group-item.svelte' +const Input = RadioGroupPrimitive.Input + +export { + Input, + Item, + // + Root as RadioGroup, + Input as RadioGroupInput, + Item as RadioGroupItem, + Root, +} diff --git a/packages/ui/src/components/radio-group/radio-group-item.svelte b/packages/ui/src/components/radio-group/radio-group-item.svelte new file mode 100644 index 000000000..2a3952bce --- /dev/null +++ b/packages/ui/src/components/radio-group/radio-group-item.svelte @@ -0,0 +1,42 @@ + + +
+ +
+ + + +
+
+ + {label} + +
diff --git a/packages/ui/src/components/radio-group/radio-group.stories.svelte b/packages/ui/src/components/radio-group/radio-group.stories.svelte new file mode 100644 index 000000000..0cd79e96b --- /dev/null +++ b/packages/ui/src/components/radio-group/radio-group.stories.svelte @@ -0,0 +1,96 @@ + + + + + + + + + diff --git a/packages/ui/src/components/radio-group/radio-group.svelte b/packages/ui/src/components/radio-group/radio-group.svelte new file mode 100644 index 000000000..043874492 --- /dev/null +++ b/packages/ui/src/components/radio-group/radio-group.svelte @@ -0,0 +1,19 @@ + + + + +