import { RadioGroup } from "@radix-ui/themes" import { radioGroupRootPropDefs } from "@radix-ui/themes/props" import type { Meta, StoryObj } from "@storybook/react" const meta: Meta = { title: "base/selection/RadioGroup", component: RadioGroup.Root, parameters: { layout: "centered", }, tags: ["autodocs"], argTypes: { size: { control: "select", options: radioGroupRootPropDefs.size.values, }, color: { control: "select", options: radioGroupRootPropDefs.color.values, }, highContrast: { control: "boolean", }, disabled: { control: "boolean", }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: args => (
Default Option 1 Option 2
), }