@amalto/radio-input
Version:
Radio input used on platform6.
37 lines (36 loc) • 982 B
TypeScript
import * as React from 'react';
import { BaseFieldProps } from 'redux-form';
declare namespace RadioInput {
interface Props extends BaseFieldProps {
name: string;
label?: string | JSX.Element;
options: {
value: string;
label?: string;
}[];
disabled?: boolean;
help?: string;
containerClass?: string;
inputClass?: string;
collapseErrorSpace?: boolean;
children?: React.ReactNode;
key?: React.ReactText;
ref?: React.Ref<RadioInput>;
component?: any;
format?: any;
normalize?: any;
props?: any;
parse?: any;
validate?: any;
warn?: any;
withRef?: any;
}
interface State {
}
}
declare class RadioInput extends React.Component<RadioInput.Props, RadioInput.State> {
constructor(props: RadioInput.Props);
private renderRadio;
render(): JSX.Element;
}
export default RadioInput;