@trellixio/roaster-coffee
Version:
Beans' product component library
27 lines • 1.2 kB
TypeScript
import * as React from 'react';
import { ForwardRefWithStaticComponents } from '@/types';
import { RadioGroup } from './RadioGroup/RadioGroup';
export interface RadioProps {
/** The HTML ID attribute to be applied to the radio input element (optional). */
id?: string;
/** The name attribute to be applied to the radio input element (optional). */
name?: string;
/** Whether the radio input field should be disabled (optional). */
disabled?: boolean;
/** The value of the radio input field (optional). */
value?: string;
/** The label to be displayed next to the radio input field (optional). */
label?: React.ReactNode;
/** CSS class names to be applied to the label element (optional). */
labelClassName?: string;
/** CSS class names to be applied to the radio input element (optional). */
inputClassName?: string;
/** Whether the radio input field should be displayed as a rich selector (optional). */
isRichSelector?: boolean;
}
declare type RadioComponent = ForwardRefWithStaticComponents<RadioProps, {
Group: typeof RadioGroup;
}>;
export declare const Radio: RadioComponent;
export {};
//# sourceMappingURL=Radio.d.ts.map