import { AnchorHTMLAttributes, FC, Ref } from 'react'; import { TextProps } from '../Text'; export interface LinkProps extends AnchorHTMLAttributes { /** * Custom class name applied to the link. * Useful for design token styling or scoped overrides. */ className?: string; /** * The visible text content of the link. * Only plain string content is supported here. */ children?: string; /** * Visual size of the link text. * Inherits values from `TextProps['size']`, typically based on a design system scale. */ size?: TextProps['size']; /** * Font weight of the link text. * Inherits from `TextProps['fontWeight']`. * Allows control over link emphasis. */ fontWeight?: TextProps['fontWeight']; /** * Renders the link as a child component using a `Slot` (e.g., Radix UI `asChild`). * Useful for composing links with routing libraries like Next.js (``) or `react-router`. */ asChild?: boolean; /** * Ref to the underlying anchor (``) element. * Useful for DOM access, focus control, or measurement. */ ref?: Ref; } /** A Link is a UI component that allows users to navigate to another page, section, or resource, typically styled as text or buttons that can be clicked or tapped. */ export declare const Link: FC;