Skip to content

Radio

A single radio button, can be grouped with others using a RadioGroup component.

See all the examples and details in the Storybook.

Usage

tsx
import { Radio } from "@samgl/graffiti-ui";

const MyRadio = () => {
  return <Radio label="The quick brown fox jumps over the lazy dog" />;
};

Props

PropTypeDefaultOptionalDescription
labelstringThe label to display next to the radio button.
classNamestringThe class name of the component, generally used when extending the component with a styled component.