Gallery
A collection book for anything: items, characters, fish, recipes. Locked entries are silhouettes, a progress bar counts what is found, and opening an entry shows a big view with previous and next.
Group tabs, search over found entries and a found/total bar. Arrow keys move between cards; in the big view, Prev and Next skip locked entries.
Collection
Found 7 / 10
Installation
Usage
Examples
Characters
Generic over your data: renderDetail shows a CharacterInfo for each villager.
Villagers
Met 3 / 4
API
Everything else is passed through to the underlying element or Radix primitive.
| Prop | Type | Default | Description |
|---|---|---|---|
entries | GalleryEntry<T>[] | – | { id, name, label?, image?, rarity?, group?, unlocked?, caption?, description?, badge?, data? }. |
groups / search | { id, label }[] / boolean | string | – | Filter tabs and a search box (matches found entries). |
showProgress / progressLabel | boolean / ReactNode | true / "Found" | The found/total bar. |
cardSize | number | 132 | Minimum card width in px; cards grow to fill the row. |
cardHeight / artScale | number | row height / 0.74 | Fixed card height in px (by default every card in a row matches the tallest), and art size as a share of the card width. |
lockedName / openLocked | ReactNode / boolean | "???" / false | Name for locked entries, and whether they open. |
openId / onOpenChange | string | null | – | Control which entry is open. |
renderCard / renderDetail / detailActions | (entry) => ReactNode | – | Your own card inside, big-view body and buttons. |