grepsr-ui-elements
Version:
34 lines (33 loc) • 1.17 kB
TypeScript
import PropTypes from "prop-types";
import { ReactNode } from "react";
interface LinkProps {
children: ReactNode;
sx?: Array<Function | object | boolean> | Function | object;
color?: string;
underline?: "always" | "hover" | "none";
variant?: "body" | "button" | "caption" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "inherit" | "overline" | "subtitle1" | "subtitle2";
component?: ReactNode;
href: string;
openNewTab: boolean | undefined;
[restProps: string]: any;
}
export { LinkProps };
declare const GrepsrLink: {
({ children, color, underline, variant, href, openNewTab, ...restProps }: LinkProps): JSX.Element;
defaultProps: {
children: string;
color: string;
href: string;
underline: string;
variant: string;
};
propTypes: {
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
color: PropTypes.Requireable<string>;
typography: PropTypes.Requireable<string>;
underline: PropTypes.Requireable<string>;
variant: PropTypes.Requireable<string>;
href: PropTypes.Validator<string>;
};
};
export default GrepsrLink;