UNPKG

@wix/design-system

Version:

@wix/design-system

55 lines 2.14 kB
import React from 'react'; import PropTypes from 'prop-types'; 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; }; static propTypes: { dataHook: PropTypes.Requireable<string>; className: PropTypes.Requireable<string>; onChange: PropTypes.Requireable<(...args: any[]) => any>; value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>; disabledRadios: PropTypes.Requireable<(NonNullable<string | number | null | undefined> | null | undefined)[]>; vAlign: PropTypes.Requireable<string>; disabled: PropTypes.Requireable<boolean>; display: PropTypes.Requireable<string>; selectionArea: PropTypes.Requireable<string>; selectionAreaSkin: PropTypes.Requireable<string>; selectionAreaPadding: PropTypes.Requireable<string>; children: PropTypes.Requireable<PropTypes.ReactNodeLike>; spacing: PropTypes.Requireable<string>; name: PropTypes.Requireable<string>; fullWidth: PropTypes.Requireable<boolean>; size: PropTypes.Requireable<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