← All buttons

Core / Buttons

Link Button

Navigation styled as an action.

Preview

import { LinkButton } from "@/components/ui/design-system/core/buttons/LinkButton"

<LinkButton href="/pricing">View pricing</LinkButton>

Installation

Full library

pnpm install:project /absolute/path/to/your-project

Manual install

The guided installer is the next library milestone. This component will be selectable as Core → Buttons → Link Button.

Usage

<LinkButton href="/pricing">View pricing</LinkButton>

Adopt to your project

Use LinkButton only when navigation occurs. Use Button for an in-place action, submission, or dialog trigger.

<LinkButton href="/pricing" className="rounded-full px-6 shadow-sm">View pricing</LinkButton>

Accessibility

Link text should describe the destination. External links open in a new tab and use rel=noreferrer automatically.

API reference

AttributeTypeDefaultRequiredPurpose
hrefstringYesNavigation destination.
childrenReactNodeYesVisible link content.
externalbooleanfalseNoAdds target=_blank and rel=noreferrer.
variant"primary" | "secondary" | "outline" | "ghost" | "destructive""primary"NoSemantic action treatment.
size"sm" | "md" | "lg""md"NoControl size.
radius"sm" | "md" | "lg" | "xl" | "full"component defaultNoCorner treatment.
classNamestringNoLocal project styling.
...anchorPropsAnchorHTMLAttributes<HTMLAnchorElement>NoNative anchor attributes.