@konstructio/ui
Version:
A set of reusable and customizable React components built for konstruct.io
23 lines (22 loc) • 565 B
TypeScript
import { FC } from 'react';
import { Props } from './Radio.types';
/**
* A radio button component with label and optional description.
* Use RadioGroup to manage a group of radio buttons.
*
* @example
* ```tsx
* <Radio
* name="plan"
* value="basic"
* label="Basic Plan"
* description="Free forever"
* checked={plan === 'basic'}
* onChange={(value) => setPlan(value)}
* />
* ```
*
* @see {@link https://konstructio.github.io/konstruct-ui/?path=/docs/components-radio--docs Storybook}
*/
declare const Radio: FC<Props>;
export { Radio };