# Stack small cards Demo

> Demo showing different usecase of Cards Stack component with smaller cards.

A shadcn/ui block from the [@systaliko-ui](https://systaliko-ui.vercel.app) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/systaliko-ui/cards-stack-achievements-demo).

- Page, with a live preview: https://shadcn.exchange/r/systaliko-ui/cards-stack-achievements-demo
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/systaliko-ui/cards-stack-achievements-demo-light-1af5327cd3da5ca9.png
- Registry item: https://systaliko-ui.vercel.app/r/cards-stack-achievements-demo.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://systaliko-ui.vercel.app/r/cards-stack-achievements-demo.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `https://systaliko-ui.vercel.app/r/cards-stack`

## Files

### `registry/demo/cards/cards-stack-achievements/index.tsx`

```tsx
import { Card } from '@/components/systaliko-ui/cards/card';
import { CardSticky, CardsStackContainer } from '@/components/systaliko-ui/cards/cards-stack';

const ACHIEVEMENTS = [
  {
    id: 'achivement-1',
    title: '4',
    description: 'site of the day',
    bg: 'bg-indigo-500',
  },
  {
    id: 'achivement-2',
    title: '60+',
    description: 'website created',
    bg: 'bg-emerald-500',
  },
  {
    id: 'achivement-3',
    title: '5+',
    description: 'years of experience',
    bg: 'bg-pink-500',
  },
  {
    id: 'achivement-4',
    title: '6+',
    description: 'component created',
    bg: 'bg-purple-500',
  },
];

export function CardsStackAchievementsDemo() {
  return (
    <CardsStackContainer className="min-h-[400vh] place-items-center space-y-8 p-12 text-center ">
      {ACHIEVEMENTS.map((achievement, index) => (
        <CardSticky
          key={achievement.id}
          incrementY={20}
          index={index + 2}
          style={{ rotate: index + 2 }}
        >
          <Card
            className={`flex ${achievement.bg} text-white h-72 w-[420px] flex-col place-content-center justify-evenly p-8 `}
          >
            <h1 className="text-left text-6xl font-semibold opacity-80">
              {achievement.title}
            </h1>
            <div className="place-items-end text-right">
              <h3 className="max-w-[10ch] text-wrap  text-4xl font-semibold capitalize tracking-tight">
                {achievement.description}
              </h3>
            </div>
          </Card>
        </CardSticky>
      ))}
    </CardsStackContainer>
  );
}
```
