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.
npx shadcn@latest add https://yoink-app.fly.dev/r/gallery-graphite-editorial/mine/outlined-pill-button.json
Restyled to your project: uses your shadcn colours, fonts and radius, so it matches the rest of your app. Layout, type sizes and motion stay as designed.
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> ); }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-full border border-foreground bg-transparent px-4 py-1.5 font-sans text-[11px] font-semibold uppercase leading-none tracking-[0.04em] text-primary-foreground transition-colors duration-200 ease-out hover:bg-primary hover:text-primary-foreground focus-visible:bg-primary focus-visible:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-foreground focus-visible:ring-offset-2 focus-visible:ring-offset-background " + (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-background 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- Accessible: passedNo serious accessibility problems (axe-core): readable contrast, labelled buttons and images.
- Responsive: passedRenders at phone (390px), tablet (768px) and desktop width without sideways scrolling.
- Dark mode: not passedElements must meet minimum color contrast ratio thresholds (1 element)
- Themeable: passedUses design tokens rather than hard-coded colours, so it follows your theme cleanly.
- Animates cleanly: doesn't applyDoesn't animate, so there's nothing to check.