Component docs
Loading
import { Link } from "@pixxl-tools/components";
// In Server Components:
import { Link } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | — | Render the single child element instead, with this component's props, classes, handlers and ref merged in. |
prefetch | boolean | — | Router prefetch hint for the PixxlProvider linkComponent (e.g. false for next/link); a plain <a> never receives it. |
tone | "neutral" | "muted" | "default" | — | neutral (default, accent-coloured text link) or muted. default is a deprecated alias of neutral. |
asChildboolean
Render the single child element instead, with this component's props, classes, handlers and ref merged in.
prefetchboolean
Router prefetch hint for the PixxlProvider linkComponent (e.g. false for next/link); a plain <a> never receives it.
tone"neutral" | "muted" | "default"
neutral (default, accent-coloured text link) or muted. default is a deprecated alias of neutral.
Other props are passed to the root element (AnchorHTMLAttributes<HTMLAnchorElement>), including className, style, id and aria-* attributes.
<Link href="/docs">Docs</Link>