Link
The Link component provides styled navigation that looks like a button but renders as a semantic <a> anchor element. Use it for navigation actions where you want button-like styling.
Link uses the same fixed geometry, label weight, icon size, gap, and padding as Button. Use jss only for exceptional layout overrides.
Props
| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
| children | ReactNode | Yes | - | Link text content |
| href | string | Yes | - | Navigation destination URL |
| color | InteractableColor | Yes | - | "primary", "secondary", "negative", "inverse" |
| bare | boolean | No | false | Removes background and elevation |
| disabled | boolean | No | false | Disables interaction |
| underline | boolean | No | false | Adds text underline decoration |
| icon | IconType | No | - | Icon to display alongside text |
| iconPosition | "left" | "right" | No | "left" | Icon placement relative to text |
| inline | boolean | No | true | Display as inline-flex (true) or flex (false) |
| target | string | No | - | Link target (e.g., "_blank" for new tab) |
Color variants
Links share the same color system as buttons, providing visual consistency across your application.
<Link color="primary" href="/signup">Sign up</Link>
<Link color="secondary" href="/learn-more">Learn more</Link>
<Link color="negative" href="/delete">Delete account</Link>
Bare variant
The bare prop removes the background and elevation entirely, leaving only the label and optional icon.
<Link bare color="primary" href="/docs">Documentation</Link>
<Link bare color="secondary" href="/about">About us</Link>
With underline
The underline prop adds a text decoration, useful for traditional link styling within paragraphs.
<Link bare underline color="primary" href="/docs">
Learn more
</Link>
With icon
Add icons to reinforce the link's purpose or indicate external navigation.
<Link
color="primary"
icon="external-link"
iconPosition="right"
href="https://example.com"
target="_blank"
>
External link
</Link>
<Link color="secondary" icon="download" href="/file.pdf">
Download PDF
</Link>
Disabled state
Disabled links prevent navigation and display a muted appearance.
<Link color="primary" disabled href="/premium">
Premium only
</Link>
Link vs Button
Use Link when:
- The action navigates to a new page or URL
- You want the browser's native link behaviors (right-click, cmd+click)
- SEO matters for the destination
Use Button when:
- The action triggers an in-page operation
- No navigation occurs
- Form submissions
Compact links
Link and IconLink accept the same four control sizes as buttons. Link also supports leading and trailing content. Disabled links remain in the tab order and announce aria-disabled, but cannot activate.