Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

1.2 KB
Raw Blame
import { Meta, Story } from "@storybook/addon-docs/blocks";

import { Label } from "@/components/ui/label";
import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group";

<Meta title="RadioGroup" component={RadioGroup} />

# RadioGroup

<RadioGroup defaultValue="comfortable">
  <div className="flex items-center space-x-3">
    <RadioGroupItem value="default" id="r1" />

    <Label htmlFor="r1">Default</Label>

  </div>

  <div className="flex items-center space-x-3">
    <RadioGroupItem value="comfortable" id="r2" />

    <Label htmlFor="r2">Comfortable</Label>

  </div>

  <div className="flex items-center space-x-3">
    <RadioGroupItem value="compact" id="r3" />

    <Label htmlFor="r3">Compact</Label>

  </div>
</RadioGroup>

<RadioGroup defaultValue="comfortable">
  <div className="flex items-center space-x-3">
    <RadioGroupItem value="default" id="r1" />

    <Label htmlFor="r1">a</Label>

  </div>

  <div className="flex items-center space-x-3">
    <RadioGroupItem value="comfortable" id="r2" />

    <Label htmlFor="r2">b</Label>

  </div>

  <div className="flex items-center space-x-3">
    <RadioGroupItem value="compact" id="r3" />

    <Label htmlFor="r3">c</Label>

  </div>
</RadioGroup>