formsy-semantic-ui-react
Version:
Formsy-React wrappers for Semantic-Ui-React's form Components
17 lines (16 loc) • 1.03 kB
TypeScript
import { FormsyInjectedProps } from 'formsy-react';
import React from 'react';
import { RadioProps, StrictFormFieldProps, StrictRadioProps } from 'semantic-ui-react';
import { StrictFormGroupProps } from 'semantic-ui-react/dist/commonjs/collections/Form/FormGroup';
type RadioGroupValueType = RadioProps['value'];
export interface IFormsyRadioGroupProps extends FormsyInjectedProps<RadioGroupValueType>, Pick<StrictFormFieldProps, 'as' | 'className' | 'error' | 'width' | 'disabled'>, Omit<StrictRadioProps, 'error' | 'value' | 'name'>, Pick<StrictFormGroupProps, 'inline' | 'unstackable'> {
id?: string;
inputClassName?: string;
passRequiredToField?: boolean;
defaultSelected?: string;
label?: string | React.ReactNode;
errorLabel?: React.ReactElement;
children: React.ReactNode[];
}
declare const _default: React.ComponentType<Omit<IFormsyRadioGroupProps & import("formsy-react/dist/withFormsy").WrapperProps<string | number>, keyof import("formsy-react").InjectedProps<V>>>;
export default _default;