@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
36 lines (35 loc) • 1.15 kB
TypeScript
/**
* @name FieldGroup
*
* @description
* A field group component is a wrapper for grouping the input with label and messages. See the teamsnap patterns
* library for more information. https://teamsnap-ui-patterns.netlify.com/patterns/components/field-group.html
*
* @example
* <FieldGroup name='example' label='Check Me' isInline>
* Field Child Data
* </FieldGroup>
*
*/
import * as React from "react";
import * as PropTypes from "prop-types";
declare class FieldGroup extends React.PureComponent<PropTypes.InferProps<typeof FieldGroup.propTypes>, any> {
static propTypes: {
children: PropTypes.Validator<PropTypes.ReactNodeLike>;
status: PropTypes.Requireable<string>;
className: PropTypes.Requireable<string>;
mods: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
otherProps: PropTypes.Requireable<object>;
};
static defaultProps: {
status: any;
className: string;
mods: any;
style: {};
otherProps: {};
};
renderSuccess: () => JSX.Element;
render(): JSX.Element;
}
export default FieldGroup;