# Link API

## Root Props

| Prop | Type | Default | Required | Description |
| --- | --- | --- | --- | --- |
| `asChild` | `boolean` | — | No | 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 (`<Link>`) or `react-router`. |
| `ref` | `Ref<HTMLAnchorElement>` | — | No | Ref to the underlying anchor (`<a>`) element. Useful for DOM access, focus control, or measurement. |

Also accepts all `<a>` attributes.

## Child Parts

`Link` does not expose public child parts.

## Types

- `LinkProps`

## State Model

- `Link` is stateless from the component API perspective.
- `asChild` lets the consumer preserve link styling while delegating rendering to another link-like component.
