Component docs
Loading
import { DownloadTrigger } from "@pixxl-tools/components";
// In Server Components:
import { DownloadTrigger } from "@pixxl-tools/components/server";| Prop | Type | Default | Description |
|---|---|---|---|
fileName | string | — | — |
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. |
fileNamestring
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.
<DownloadTrigger href="/report.txt" fileName="report.txt">Download</DownloadTrigger>