Buttons & actions / Buttons

Outlined Arrow Pill Button

Fully rounded 1px ink outline pill with 11px uppercase semi-bold text and a trailing arrow icon; no fill at rest.

Rebuilt from epic.net in the Gallery Graphite Editorial style.

npx shadcn@latest add https://yoink-app.fly.dev/r/gallery-graphite-editorial/blocks/outlined-pill-button.json

Looks exactly like epic.net: brings its fonts and colours, namespaced so your own theme stays untouched.

Usage

Props: label (text), href (renders as a link if given, otherwise a button), onClick, className. Hover or focus fills the pill with ink over 200ms and nudges the arrow right.

components/outlined-pill-button.tsx
import { useState } from "react";

type Props = {
  label?: string;
  href?: string;
  onClick?: () => void;
  className?: string;
};

export default function OutlinedArrowPillButton({
  label = "Visit project",
  href,
  onClick,
  className = "",
}: Props) {
  const [pressed, setPressed] = useState(false);
  const classes =
    "group inline-flex items-center gap-2 rounded-pill border border-ink bg-transparent px-4 py-1.5 font-sans text-[11px] font-semibold uppercase leading-none tracking-[0.04em] text-ink transition-colors duration-200 ease-out hover:bg-ink hover:text-on-ink focus-visible:bg-ink focus-visible:text-on-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ink focus-visible:ring-offset-2 focus-visible:ring-offset-canvas " +
    (pressed ? "scale-[0.98] " : "") +
    className;

  const content = (
    <>
      <span>{label}</span>
      <svg
        width="14"
        height="14"
        viewBox="0 0 14 14"
        fill="none"
        stroke="currentColor"
        strokeWidth="1.25"
        strokeLinecap="round"
        strokeLinejoin="round"
        aria-hidden="true"
        className="transition-transform duration-200 ease-out group-hover:translate-x-[3px] group-focus-visible:translate-x-[3px] motion-reduce:transition-none"
      >
        <path d="M2 7h10M8 3l4 4-4 4" />
      </svg>
    </>
  );

  const handlers = {
    onMouseDown: () => setPressed(true),
    onMouseUp: () => setPressed(false),
    onMouseLeave: () => setPressed(false),
  };

  return (
    <div className="flex min-h-[160px] items-center justify-center bg-canvas p-10">
      {href ? (
        <a href={href} className={classes} {...handlers}>
          {content}
        </a>
      ) : (
        <button type="button" onClick={onClick} className={classes} {...handlers}>
          {content}
        </button>
      )}
    </div>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery Graphite Editorial

The whole style →

Square Outline Cookie Panel

Toasts & snackbars

Rounded Showreel Video Frame

Media & mockups

Line-Art Blueprint Illustration

Animated graphics

Tracked Micro Label

Badges & tags

Hairline Minimal Header

Headers & nav bars

Floating Object Project Hero

Heroes