@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
35 lines (34 loc) • 1.07 kB
TypeScript
/**
* @name Toggle
*
* @description
* A controlled input element to toggle a boolean state. 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/toggle.html
*
* @example
* <Toggle
* name='OfflinePayments' />
*
*/
import * as React from "react";
import * as PropTypes from "prop-types";
declare class Toggle extends React.PureComponent<PropTypes.InferProps<typeof Toggle.propTypes>, any> {
static propTypes: {
name: PropTypes.Validator<string>;
inputProps: PropTypes.Requireable<object>;
className: PropTypes.Requireable<string>;
mods: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
otherProps: PropTypes.Requireable<object>;
};
static defaultProps: {
inputProps: {};
className: string;
mods: any;
style: {};
otherProps: {};
};
render(): JSX.Element;
}
export default Toggle;