UNPKG

@open-condo/ui

Version:

A set of React UI components for developing applications inside the condo ecosystem

17 lines 738 B
import React from 'react'; import type { RadioProps } from '@open-condo/ui/src'; import type { RadioGroupProps as DefaultRadioGroupProps } from 'antd'; type ItemGroupOptionType = Pick<RadioProps, 'value' | 'label'> & { radioProps?: Partial<Pick<RadioProps, 'labelProps' | 'disabled'>>; }; export type ItemGroupProps = { name: string; options: Array<ItemGroupOptionType>; }; export type RadioGroupProps = Pick<DefaultRadioGroupProps, 'value' | 'onChange' | 'disabled' | 'children' | 'optionType' | 'defaultValue'>; type CompoundedComponent = React.FC<RadioGroupProps> & { ItemGroup: React.FC<ItemGroupProps>; }; declare const RadioGroup: CompoundedComponent; export { RadioGroup, }; //# sourceMappingURL=radiogroup.d.ts.map