@teamsnap/teamsnap-ui
Version:
a CSS component library for TeamSnap
33 lines (32 loc) • 1.06 kB
TypeScript
/**
* @name FieldLabel
*
* @description
* A field label component is used to render the html label for a form input. See the teamsnap patterns
* library for more information. https://teamsnap-ui-patterns.netlify.com/patterns/components/field-group.html
*
* @example
* <FieldLabel name='example'>Test Field Label</FieldLabel>
*
*/
import * as React from "react";
import * as PropTypes from "prop-types";
declare class FieldLabel extends React.PureComponent<PropTypes.InferProps<typeof FieldLabel.propTypes>, any> {
static propTypes: {
children: PropTypes.Validator<PropTypes.ReactNodeLike>;
name: PropTypes.Requireable<string>;
className: PropTypes.Requireable<string>;
mods: PropTypes.Requireable<string>;
style: PropTypes.Requireable<object>;
otherProps: PropTypes.Requireable<object>;
};
static defaultProps: {
name: any;
className: string;
mods: any;
style: {};
otherProps: {};
};
render(): JSX.Element;
}
export default FieldLabel;