@wix/design-system
Version:
@wix/design-system
36 lines • 1.13 kB
TypeScript
import React from 'react';
import { RadioGroupProps, RadioGroupRadioProps } from './RadioGroup.types';
/**
* component for easy radio group creation.
*
* similar to HTML `<input type="radio"/>` except you don't need to handle `name` or click handlers
*/
declare class RadioGroup extends React.PureComponent<RadioGroupProps> {
uniqueName: string;
static Radio: React.FunctionComponent<RadioGroupRadioProps>;
static displayName: string;
static defaultProps: {
disabledRadios: never[];
onChange: () => void;
value: string;
vAlign: string;
display: string;
selectionArea: string;
selectionAreaSkin: string;
fullWidth: boolean;
size: string;
};
_getSpacing(index: number): {
marginTop: string | undefined;
marginInlineStart?: undefined;
} | {
marginInlineStart: string | undefined;
marginTop?: undefined;
} | {
marginTop?: undefined;
marginInlineStart?: undefined;
};
render(): React.JSX.Element;
}
export default RadioGroup;
//# sourceMappingURL=RadioGroup.d.ts.map