A hand of cards in an arc. The one you point at rises while its neighbours part. Works with Tab and arrow keys.
Install it the shadcn way: copy the source file into your project. It uses CSS 3D, Tailwind CSS v4 and Framer Motion, no WebGL.
| Prop | Type | Default | Description |
|---|---|---|---|
| cards | ReactNode[] | Content of each card in the fan. | |
| width | number | 150 | Card width in px. |
| height | number | 210 | Card height in px. |
| spread | number | 46 | Total angle of the fan in degrees. |
| onSelect | (index: number) => void | Called with the index of the card the user picks. | |
| className | string | Extra classes added to the outer element. | |
| cardClassName | string | Extra classes added to each card. |