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
Name | Type | Description | Required | Default Value |
---|---|---|---|---|
label | string | Text label for the radio button | Yes | - |
inputSize | "xs" | "sm" | "md" | "lg" | "xl" | Size of the radio button | No | "sm" |