# Avatar Stack

> An overlapping avatar stack for teams, signers or token holders that lifts and names one on hover and lists the overflow.

A React component for shadcn/ui and Tailwind CSS, from ssych ui (https://ssych.com). Free, MIT licensed, the source lands in your repo.

## Install

```bash
npx shadcn@latest add @ssych/avatar-stack
```

npm dependencies: clsx, motion, tailwind-merge

## Props

`<AvatarStack />`

- `names`: `string[]`
- `images?`: `(string | undefined)[]`
- `max?`: `number`

## Where it belongs

- Controls: React control components: a segmented control, currency toggle, amount input with presets, avatar stack and preference cards. (https://ssych.com/library/s/controls)

## Related

- Segmented Control: https://ssych.com/library/segmented-control.md
- Crypto/Fiat: https://ssych.com/library/crypto-fiat.md
- Currency Amount: https://ssych.com/library/amount.md
- Preferences Card: https://ssych.com/library/preferences-card.md
- Price Scrubber: https://ssych.com/library/price-scrubber.md

## Links

- Live preview and code: https://ssych.com/library/avatar-stack
- Source: https://github.com/savvasicevs/ssych-ui
- All components: https://ssych.com/llms-full.txt
