@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
42 lines (41 loc) • 1.35 kB
TypeScript
/**
* @name Radio
*
* @description
* A common radio component that will render the appropriate styles for a html radio element. This calls the shared
* components InputControl with all the appropriate options. See the teamsnap patterns library for more information.
* https://teamsnap-ui-patterns.netlify.com/patterns/components/checkbox.html
*
* @example
* <Radio
* name='example'
* label='Option One'
* group='exampleOptions'
* isInline />
*
*/
import * as React from "react";
import * as PropTypes from "prop-types";
declare class Radio extends React.PureComponent<PropTypes.InferProps<typeof Radio.propTypes>, any> {
static propTypes: {
name: PropTypes.Validator<string>;
label: PropTypes.Validator<PropTypes.ReactNodeLike>;
group: PropTypes.Validator<string>;
inputProps: 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: {
inputProps: {};
isInline: boolean;
className: string;
mods: any;
style: {};
otherProps: {};
};
render(): JSX.Element;
}
export default Radio;