Radio Group

Displays a callout for user attention.

radio-group-example

React

import { Label, RadioGroup, RadioGroupItem } from "@backend-ai/ui/components";

const RadioGroupExample = () => {
  return (
    <RadioGroup defaultValue="option-one">
      <div className="flex items-center space-x-2">
        <RadioGroupItem value="option-one" id="option-one" />
        <Label htmlFor="option-one">Option One</Label>
      </div>
      <div className="flex items-center space-x-2">
        <RadioGroupItem value="option-two" id="option-two" />
        <Label htmlFor="option-two">Option Two</Label>
      </div>
    </RadioGroup>
  );
};

export default RadioGroupExample;