LinkButton
A link styled as a Button. Routes through LinkProvider (e.g. Next's Link).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A link styled as a Button.
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/link-button
import { LinkButton } from '@/components/prism/LinkButton';
In a no-build prototype, read it from the bundle instead: const { LinkButton } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
href | string | — | Where the link goes. Omit (or set isDisabled) for a disabled link. |
variant | "accent" | "neutral" | "quiet" | "outline" | "negative" | "negative-outline" | "positive" | "notice" | — | |
size | "sm" | "md" | "lg" | "xl" | — | |
isDisabled | boolean | — | Keeps the look but drops the href and sets aria-disabled. |
fullWidth | boolean | — | |
icon | React.ReactNode | — | |
iconEnd | React.ReactNode | — | |
linkComponent | LinkComponent | — | Overrides LinkProvider's link component for this link. |
children | React.ReactNode | — | |
className | string | — |