Anchor Button
A semantic navigation link with inline text-link styling and optional icons.
Show codeHide code
Installation
import { AnchorButton } from "@makeplane/propel/components/anchor-button";Usage
AnchorButton is for navigation and renders a semantic <a> by default. A destination is required:
pass href for native navigation, or use render to project its props onto a router or framework
link. It also accepts native anchor attributes such as target, rel, download, and aria-*;
the API table focuses on the component-owned props. Use TextButton for
lightweight text-only actions, or Button for actions with button chrome.
import { AnchorButton } from "@makeplane/propel/components/anchor-button";
export default function BasicDemo() {
return <AnchorButton href="#work-items" label="View work items" variant="primary" size="sm" />;
}Examples
Variants
primary is the blue link; secondary the muted gray inline link.
Show codeHide code
Sizes
size matches Button’s ladder — xs 20 / sm 24 / md 28 / lg 32 px — so a text link
sitting beside a button lines up at the same rung. It sets the label’s text size and the glyph
beside it; there is no default.
Show codeHide code
With icons
Pass icon and pick its side with iconPosition (start by default).
Show codeHide code
Navigation
Pass href directly for native navigation. The anchor keeps native link behavior, including Enter
activation and open-in-new-tab support; unlike a button, Space does not activate it. For client-side
routing, pass the router link through render instead. When disabled, AnchorButton removes its
destination and custom renderer and suppresses interaction.
For an external destination, set external to supply a trailing arrow, target="_blank", and
rel="noreferrer noopener". Explicit icon, target, or rel values override those defaults. The
component does not infer this from href, so same-origin URLs, allowlisted hosts, and router
destinations stay under the caller’s control.
The underline is always visible so the control retains conventional link affordance.
Show codeHide code
API Reference
AnchorButton
A semantic link with inline text-link chrome. It renders a native <a> by default and lays out
an optional icon beside the label (iconPosition). Pass href, or use render to project the
anchor props onto a router or framework link. For lightweight text-only actions, use
TextButton; for actions with button chrome, use Button; for a navigation link with button
chrome, use Button's render path.