UNPKG

@teamsnap/teamsnap-ui

Version:

a CSS component library for TeamSnap

33 lines (32 loc) 993 B
/** * @name Icon * * @description * An icon component used to render inline SVG icons in the html. See the teamsnap patterns * library for more information https://teamsnap-ui-patterns.netlify.com/patterns/components/icon.html * * For a full list of available icons - https://teamsnap-ui-patterns.netlify.com/icons.html * * @example * <Icon name='location' /> * */ import * as React from "react"; import * as PropTypes from "prop-types"; declare class Icon extends React.PureComponent<PropTypes.InferProps<typeof Icon.propTypes>, any> { static propTypes: { name: PropTypes.Validator<string>; className: PropTypes.Requireable<string>; mods: PropTypes.Requireable<string>; style: PropTypes.Requireable<object>; otherProps: PropTypes.Requireable<object>; }; static defaultProps: { className: string; mods: any; style: {}; otherProps: {}; }; render(): JSX.Element; } export default Icon;