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
Prop | Type | Default | Optional | Description |
---|---|---|---|---|
label | string | ❌ | The label to display next to the radio button. | |
className | string | ✅ | The class name of the component, generally used when extending the component with a styled component. |