Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
hrefstring—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"—
isDisabledboolean—Keeps the look but drops the href and sets aria-disabled.
fullWidthboolean—
iconReact.ReactNode—
iconEndReact.ReactNode—
linkComponentLinkComponent—Overrides LinkProvider's link component for this link.
childrenReact.ReactNode—
classNamestring—