UNPKG

@teamsnap/teamsnap-ui

Version:

a CSS component library for TeamSnap

40 lines (39 loc) 1.23 kB
/** * @name TextLink * * @description * A common link component that will render the appropriate styles for a link. Accepts a routerLink which would be the * <Link /> function from a library like react-router. * * @example * <TextLink * routerLink={ Link } * location="/home" * style={{ color: 'red'}} /> * */ import * as React from "react"; import * as PropTypes from "prop-types"; declare class TextLink extends React.PureComponent<PropTypes.InferProps<typeof TextLink.propTypes>, any> { static propTypes: { children: PropTypes.Validator<PropTypes.ReactNodeLike>; routerLink: PropTypes.Requireable<(...args: any[]) => any>; location: PropTypes.Requireable<string>; onClick: PropTypes.Requireable<(...args: any[]) => any>; className: PropTypes.Requireable<string>; mods: PropTypes.Requireable<string>; style: PropTypes.Requireable<object>; otherProps: PropTypes.Requireable<object>; }; static defaultProps: { routerLink: any; location: string; onClick: any; className: string; mods: any; style: {}; otherProps: {}; }; render(): JSX.Element; } export default TextLink;