Buttons & actions / Buttons

Circular Arrow Controls

Pair of small circular outlined buttons with thin left/right arrows in muted grey, adjacent with a tiny gap.

Rebuilt from thisislandscape.com/profile in the Gallery White Editorial style.

npx shadcn@latest add https://justyoink.it/r/gallery-white-editorial/blocks/circle-arrow-controls.json

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

Usage

Props: heading and items (array of {quote: string[], name, role}). The two circular arrow buttons cycle through items; hover/focus turns border and arrow solid ink over 300ms.

components/circle-arrow-controls.tsx
import { useState } from "react";

const defaultItems = [
  {
    quote: [
      "Partnering with the Northwind team transformed how we talk about our product. Our platform is deeply technical, and the hardest part was making it feel clear and approachable. They delivered an identity that looks sharp and genuinely resonates with the people we serve.",
      "The results showed up quickly. We see more qualified conversations, our outreach lands better, and new customers close in less time. Traffic to our site has grown sharply and the refreshed brand is helping us hire great people.",
    ],
    name: "Alex Moreno",
    role: "Co-founder · Kitefield",
  },
  {
    quote: [
      "The studio listened first, then built a visual language that fits us perfectly. Every touchpoint now feels consistent, confident and calm.",
      "Our sales team tells us prospects mention the brand before we even start the call. That kind of recognition is hard to buy.",
    ],
    name: "Priya Lindqvist",
    role: "CEO · Altura",
  },
];

function Arrow({ dir }: { dir: "left" | "right" }) {
  return (
    <svg width="18" height="12" viewBox="0 0 18 12" fill="none" stroke="currentColor" strokeWidth="1" aria-hidden="true" className={dir === "left" ? "" : "rotate-180"}>
      <path d="M17 6H1M6 1L1 6l5 5" />
    </svg>
  );
}

export default function CircularArrowControls({
  heading = "Kind words",
  items = defaultItems,
}: {
  heading?: string;
  items?: typeof defaultItems;
}) {
  const [i, setI] = useState(0);
  const n = items.length;
  const cur = items[i];
  const btn =
    "flex h-8 w-8 items-center justify-center rounded-pill border border-ink/10 text-ink/40 transition-colors duration-pill-hover ease-pill-hover hover:border-ink hover:text-ink focus-visible:border-ink focus-visible:text-ink focus-visible:outline-none";
  return (
    <section className="grid gap-10 bg-canvas px-4 py-12 font-sans text-ink md:grid-cols-2">
      <div>
        <h2 className="text-h3 font-bold">{heading}</h2>
        <div className="mt-8 flex gap-[2px]">
          <button type="button" aria-label="Previous testimonial" className={btn} onClick={() => setI((i - 1 + n) % n)}>
            <Arrow dir="left" />
          </button>
          <button type="button" aria-label="Next testimonial" className={btn} onClick={() => setI((i + 1) % n)}>
            <Arrow dir="right" />
          </button>
        </div>
      </div>
      <figure key={i} className="relative pl-3 animate-[fadein_1s_ease-out]">
        <style>{"@keyframes fadein{from{opacity:0}to{opacity:1}}"}</style>
        <span className="absolute left-0 top-0 text-lg" aria-hidden="true">“</span>
        <blockquote className="space-y-5 text-xl font-medium leading-6 md:pl-0">
          {cur.quote.map((p, k) => (
            <p key={k}>{p}{k === cur.quote.length - 1 ? "”" : ""}</p>
          ))}
        </blockquote>
        <figcaption className="mt-20 text-xl font-medium leading-6">
          <div>{cur.name}</div>
          <div>{cur.role}</div>
        </figcaption>
      </figure>
    </section>
  );
}

Quality checks

Automated, in a real browser · 4d ago
—

More from Gallery White Editorial

The whole style →

Hairline Pill Nav Header

Headers & nav bars

Monochrome Client Logo Row

Logo clouds

Giant Type CTA with Arrow Glyph

Calls to action

Pill Footer Link Row

Footers

Hanging-Quote Testimonial Carousel

Testimonials

Twin-Panel Project Slideshow Hero

Heroes