Contents

Panels · Components

Slideshow

Images you flick through: buttons, arrow keys, swipe or thumbnails.

NK2E example edit1 / 3

NK2E

Instruction-based image editing for Krea 2.

$ pnpm dlx shadcn@latest add @nynxz/slideshow

Usage

It fills its container, so in a window it sizes with the window.

<Slideshow
  label="Selected work"
  slides={[
    { src: "/nk2e.jpg", alt: "…", title: "NK2E", caption: "…", href: "https://…" },
  ]}
/>

Focus it (Tab) and use ← →, Home and End; swipe on touch screens. The caption area has a fixed height, so the controls never shift between slides, and the neighbouring images are prefetched.

Props

PropType
slidesSlide[]src, alt, and optional title, caption, href
labelstringnames the carousel for screen readers