UNPKG

@octopusdeploy/design-system-components

Version:
37 lines (36 loc) 1.18 kB
type Size = "xSmall" | "small" | "medium" | "large"; type Weight = "normal" | "bold"; type LinkType = "primary" | "high-contrast"; export type BaseLinkProps = { href: string; children: string; external?: boolean; video?: boolean; openInNewTab?: boolean; size?: Size; weight?: Weight; onClick?: () => void; download?: string; accessibleName?: string; type?: LinkType; }; export type LinkProps = { type?: LinkType; href: string; children: string; size?: Size; weight?: Weight; onClick?: () => void; }; export declare function Link({ href, children, size, weight, onClick, type }: LinkProps): import("react/jsx-runtime").JSX.Element; type ExternalLinkProps = LinkProps & { video?: boolean; trackAnalytics?: boolean; downloadFileName?: string; linkLocation?: string; openInSelf?: boolean; hideIcon?: boolean; accessibleName?: string; }; export declare function ExternalLink({ href, children, size, weight, onClick, trackAnalytics, video, downloadFileName, linkLocation, openInSelf, hideIcon, accessibleName, type }: ExternalLinkProps): import("react/jsx-runtime").JSX.Element; export {};