Crafter UI

Spine Accordion

Galleries 66

About

A gallery panel that shows projects as thin vertical spines with sideways titles, opening one into a full framed image on hover, tap, or keyboard focus while the others collapse back.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Spine Accordion to your project and fits it to your theme.

Code

How Spine Accordion is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { SpineAccordion } from "@/components/ui/spine-accordion";

export default function SpineAccordionDemo() {
  return (
    <div className="flex h-screen w-full items-center justify-center p-8">
      <SpineAccordion
        className="max-w-4xl"
        defaultIndex={2}
        items={[
          {
            title: "Northern Lights",
            image: "https://cdn.21st.dev/assets/mirror/87/870a7dad1337e336ce3e626636f17d0ccda58c3ed444002a07696259a7188bdb.jpg",
            meta: "2021",
          },
          {
            title: "Desert Bloom",
            image: "https://cdn.21st.dev/assets/mirror/a6/a6baeb8c089233379e22b1393477be200b3a3b7a0745e64cc825c339c8463e0b.jpg",
            meta: "2022",
          },
          {
            title: "Coastal Drift",
            image: "https://cdn.21st.dev/assets/mirror/48/48288a1b78fecf95a5b8419b6c6e2187b289874ff8286e6681400863f4255c5b.jpg",
            meta: "2023",
          },
          {
            title: "Urban Pulse",
            image: "https://cdn.21st.dev/assets/mirror/70/707ab186017a71e70a4cc005b13fe2848ab7a677bd8a3d6ccb56d29f81571d0f.jpg",
            meta: "2024",
          },
        ]}
      />
    </div>
  );
}

More by Crafter UI

View all
  • Works Wheel

    Works Wheel

    2.4K
  • Hero Carousel

    Hero Carousel

    2K
  • Molten Ring Carousel

    Molten Ring Carousel

    232
  • Dither Helix Carousel

    Dither Helix Carousel

    130
  • Username Reel

    Username Reel

    84
  • Handwritten Response

    Handwritten Response

    70
  • Super Hover List

    Super Hover List

    49
  • Mercury Dial

    Mercury Dial

    5

More in Galleries

View all
  • Thumbnail image viewer

    Thumbnail image viewer

    68
  • Image Gallery

    Image Gallery

    127
  • Animated Gallery

    Animated Gallery

    1.5K
  • Editorial Collage Hero

    Editorial Collage Hero

    460
  • 3D Parallax Unfurling Gallery

    3D Parallax Unfurling Gallery

    1K
  • Elastic Gallery

    Elastic Gallery

    970
  • Shared Element Gallery

    Shared Element Gallery

    447
  • Hero Section 6

    Hero Section 6

    901