@trellixio/roaster-coffee
Version:
Beans' product component library
28 lines • 1.37 kB
TypeScript
import * as React from 'react';
export interface RadioGroupProps {
/** The child elements to be rendered within the radio group (required). */
children: React.ReactNode;
/** The value of the selected radio input field (optional). */
value?: string;
/** The default value of the selected radio input field (optional). */
defaultValue?: string;
/**
* A function that is called when the value of the selected radio input field changes (optional).
* This function accepts the new value of the selected radio input field as input.
*/
onChange?(value: string): void;
/** CSS class names to be applied to the radio group container element (optional). */
className?: string;
/** The name attribute to be applied to the radio input fields in the radio group (optional). */
name?: string;
/** The title to be displayed above the radio group (optional). */
title?: string;
/**
* The orientation of the radio input fields in the radio group (optional).
* - 'horizontal': display the radio input fields horizontally
* - 'vertical': display the radio input fields vertically
*/
orientation?: 'horizontal' | 'vertical';
}
export declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
//# sourceMappingURL=RadioGroup.d.ts.map