@radix-ui/themes
Version:
[](https://radix-ui.com/themes)
15 lines (14 loc) • 720 B
TypeScript
import * as React from 'react';
import { radioPropDefs } from './radio.props.js';
import type { ComponentPropsWithout, NotInputRadioAttributes } from '../helpers/index.js';
import type { GetPropDefTypes, MarginProps } from '../props/index.js';
type RadioOwnProps = GetPropDefTypes<typeof radioPropDefs> & {
value: string;
onValueChange?: (value: string) => void;
};
type RadioInputProps = ComponentPropsWithout<'input', NotInputRadioAttributes | 'color' | 'defaultValue' | 'value'>;
interface RadioProps extends RadioInputProps, MarginProps, RadioOwnProps {
}
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
export { Radio };
export type { RadioProps };