UNPKG

@primer/react

Version:

An implementation of GitHub's Primer Design System using React

19 lines (18 loc) 813 B
import { ComponentProps as ComponentProps$1 } from "../utils/types/ComponentProps.js"; import { DistributiveOmit } from "../utils/modern-polymorphic.js"; import React, { ForwardedRef } from "react"; //#region src/Link/Link.d.ts type StyledLinkProps<As extends React.ElementType = 'a'> = { as?: As; /** @deprecated use CSS modules to style hover color */ hoverColor?: string; muted?: boolean; inline?: boolean; }; declare const Link: (<As extends React.ElementType = "a">(props: DistributiveOmit<React.ComponentPropsWithRef<React.ElementType extends As ? "a" : As> & StyledLinkProps<"a">, "as"> & { as?: As | undefined; } & React.RefAttributes<unknown>) => React.ReactNode) & { displayName: string; }; type LinkProps = ComponentProps$1<typeof Link>; //#endregion export { LinkProps, Link as default };