UNPKG

@teamsnap/teamsnap-ui

Version:

a CSS component library for TeamSnap

42 lines (41 loc) 1.42 kB
/** * @name InputControl * * @description * The InputControl component is used internally to render Checkbox, Radio and Toggles. The Checkbox, Radio and * Toggle components should be used instead. See <Radio />, <Checkbox /> or <Toggle /> for more information. * * @example * <InputControl name='example' type='radio' label='Check Me' isInline /> * */ import * as React from "react"; import * as PropTypes from "prop-types"; declare class InputControl extends React.PureComponent<PropTypes.InferProps<typeof InputControl.propTypes>, any> { static propTypes: { name: PropTypes.Validator<string>; type: PropTypes.Validator<string>; label: PropTypes.Requireable<PropTypes.ReactNodeLike>; group: PropTypes.Requireable<string>; inputProps: PropTypes.Requireable<object>; labelProps: PropTypes.Requireable<object>; isInline: PropTypes.Requireable<boolean>; className: PropTypes.Requireable<string>; mods: PropTypes.Requireable<string>; style: PropTypes.Requireable<object>; otherProps: PropTypes.Requireable<object>; }; static defaultProps: { label: any; group: any; inputProps: {}; labelProps: {}; isInline: boolean; className: any; mods: any; style: {}; otherProps: {}; }; render(): JSX.Element; } export default InputControl;