@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
37 lines (36 loc) • 1.25 kB
TypeScript
/**
* @name Checkbox
*
* @description
* A common checkbox component that will render the appropriate styles. 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
* <Checkbox name='example' label='Check Me' isInline />
*
*/
import * as React from "react";
import * as PropTypes from "prop-types";
declare class Checkbox extends React.PureComponent<PropTypes.InferProps<typeof Checkbox.propTypes>, any> {
static propTypes: {
name: PropTypes.Validator<string>;
label: PropTypes.Validator<PropTypes.ReactNodeLike>;
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 Checkbox;