Layer stack preview

Layer stack

Isometric stack of five layers with a list beside it – the chosen entry lifts its layer out in color

  • Group
    Card illustrations
  • Origin
    Copied · affectUI · source
  • License
    MIT
  • Added
    Oct 18
npx shadcn@latest add @deank/layer-stack

The registry stays private. Install from the repo with a GitHub token — see the README.

Usage

import { LayerStack } from "@/registry/blocks/layer-stack/layer-stack";

<LayerStack />

Props

NameTypeDefaultDescription
itemsLayerStackItem[]five sample layersUp to five entries, top layer first – { title, hint?, icon? } with icon one of bolt, database, plug, spark, pulse
defaultIndexnumber0Entry to start on
intervalnumber2600Time per entry while it plays on its own, in ms
onChange(index: number) => voidCalled when the user picks an entry
classNamestringExtra class on the root, e.g. for width or margins

When to use

- Explaining a layered product or platform – each entry is one layer of the stack - Feature sections that walk through capabilities one by one, with a visual that follows along

When not to use

Interactive app UI; these are illustrations, so keep them out of task flows.

Related

Side folder