import React from 'react'; import type { Emphasis, Size } from '../../util/variant-types'; import { type IconName } from '../Icon'; export type LinkProps = React.AnchorHTMLAttributes & { /** * Component used to render the element. Meant to support interaction with framework navigation libraries. * * **Default is `"a"`**. */ as?: string | React.ElementType; /** * The link contents or label. Using ReactNode to support customized text treatments */ children: React.ReactNode; /** * Where `Link` sits alongside other text and content: * * * **inline** - Inline link inherits the text size/color established within the `

` or other tag they are embedded in. * * **standalone** - Users can choose from the available sizes, select variants, and add a trailing icon. * * **Default is `"inline"`**. * * ---- * * **Note**: This will only apply when `"standalone"` is used */ context?: 'inline' | 'standalone'; /** * (trailing) icon to use with the link (when `context` is `"standalone"`) */ icon?: Extract; /** * Extra or lowered colors added to a link */ emphasis?: Emphasis | 'default'; /** * The size of the link (when its context is `"standalone"`). * * ---- * * **Note**: This will only apply when `"standalone"` is used */ size?: Extract; /** * The variant treatment for **standalone** links (use "inverse" on dark backgrounds). * * **Default is `"default"`**. * * ---- * * **Note**: This will only apply when `"standalone"` is used */ variant?: 'default' | 'inverse'; } & ExtendedElement; /** * `import {Link} from "@chanzuckerberg/eds";` * * Component for making styled anchor tags. Links allow users to navigate within or between a web page(s) or app(s). * * Inline links inherit the color of the surrounding container, while when using `context` set to `standalone`, links have specific colors. */ export declare const Link: React.ForwardRefExoticComponent & { /** * Component used to render the element. Meant to support interaction with framework navigation libraries. * * **Default is `"a"`**. */ as?: string | React.ElementType; /** * The link contents or label. Using ReactNode to support customized text treatments */ children: React.ReactNode; /** * Where `Link` sits alongside other text and content: * * * **inline** - Inline link inherits the text size/color established within the `

` or other tag they are embedded in. * * **standalone** - Users can choose from the available sizes, select variants, and add a trailing icon. * * **Default is `"inline"`**. * * ---- * * **Note**: This will only apply when `"standalone"` is used */ context?: "inline" | "standalone"; /** * (trailing) icon to use with the link (when `context` is `"standalone"`) */ icon?: Extract; /** * Extra or lowered colors added to a link */ emphasis?: Emphasis | "default"; /** * The size of the link (when its context is `"standalone"`). * * ---- * * **Note**: This will only apply when `"standalone"` is used */ size?: Extract; /** * The variant treatment for **standalone** links (use "inverse" on dark backgrounds). * * **Default is `"default"`**. * * ---- * * **Note**: This will only apply when `"standalone"` is used */ variant?: "default" | "inverse"; } & React.RefAttributes>;