Skip to main content

Radio

The Radio component is a form control that allows users to select a single option from a set of choices.

Basic Usage

import { Radio, ThemeProvider } from "@carton-org/react-neumorphism";

const MyComponent = () => {
return <Radio label="Option 1" inputSize="md" />;
};

Live Example

Props

NameTypeDescriptionRequiredDefault Value
labelstringText label for the radio buttonYes-
inputSize"xs" | "sm" | "md" | "lg" | "xl"Size of the radio buttonNo"sm"

Examples

Different Sizes

Small Size

Medium Size

Large Size

Radio States

Unchecked

Checked

Disabled