Loading component…
Components /Verse Cards
Nav trigger that fans a deck of cards up with a GSAP reveal
Run the following command
npx shadcn@latest add https://raw.githubusercontent.com/Ashutoshx7/VengeanceUI/main/public/r/verse-cards.json| Prop Name | Type | Default | Description |
|---|---|---|---|
| navItems | VerseNavItem[] | Single 'Work' trigger | Nav tiles. Mark one with isTrigger to open the deck; each item is { label, icon, badge?, isTrigger?, onClick? }. |
| cards | (VerseCard | string)[] | Sample set | Cards in the deck. Strings are used as labels; objects are { label, className }. |
| footerText | string | 'Click the front card to deal it away.' | Caption shown under the open deck. |
| onOpenChange | (open: boolean) => void | - | Called whenever the deck opens (true) or closes (false). |
| onDeal | (index: number) => void | - | Called when the front card is flicked away, with its index in the deck. |
| className | string | - | Additional classes for the root element. |