import { ActionLink } from "@pixxl-tools/components";
// In Server Components:
import { ActionLink } 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. |
fullWidth | boolean | — | Stretch to the container's inline size (content starts at the inline start). |
prefetch | boolean | — | Router prefetch hint for the PixxlProvider linkComponent (e.g. false for next/link); a plain <a> never receives it. |
size | ButtonSize | — | Size from the shared scale (xs, sm, md, lg). |
tone | ButtonTone | — | Colour role (neutral, primary, danger, success, warning, info). |
variant | ButtonVariant | — | Emphasis (solid, secondary, soft, outline, ghost). |
asChildboolean
Render the single child element instead, with this component's props, classes, handlers and ref merged in.
fullWidthboolean
Stretch to the container's inline size (content starts at the inline start).
prefetchboolean
Router prefetch hint for the PixxlProvider linkComponent (e.g. false for next/link); a plain <a> never receives it.
sizeButtonSize
Size from the shared scale (xs, sm, md, lg).
toneButtonTone
Colour role (neutral, primary, danger, success, warning, info).
variantButtonVariant
Emphasis (solid, secondary, soft, outline, ghost).
Other props are passed to the root element (AnchorHTMLAttributes<HTMLAnchorElement>), including className, style, id and aria-* attributes.
<ActionLink href="/docs">Open</ActionLink>