Action Link

A link styled as a button, for actions that go somewhere.

import { ActionLink } from '@brand-studio/ui';

export default function ActionLinkDemo() {
  return (
    <div style={{ display: 'flex', flexWrap: 'wrap', gap: 12 }}>
      <ActionLink href="#menu">See the menu</ActionLink>
      <ActionLink href="#visit" tone="secondary">Plan a visit</ActionLink>
    </div>
  );
}

Installation

pnpm add @brand-studio/ui

Usage

import { ActionLink } from '@brand-studio/ui';
<ActionLink href="/menu">See the menu</ActionLink>

Accessibility

  • Renders an <a>. Use it when the action goes to another page; use Button when it changes something here.

API Reference

PropTypeDefault
hrefstring
tone?"inverse" | "primary" | "secondary"'primary'
shape?"default" | "pill"'default'

Also accepts every AnchorHTMLAttributes<HTMLAnchorElement> attribute.

Still, Deskhand and Hollis are fictional brands. The coffee photographs are original generated artwork. @brand-studio/ui is MIT licensed.