Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProUse this when people sort through an album: a lightbox gallery where each photo in the viewer has a favourite heart and a toggle above the grid narrows it to favourites only.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use it for albums, proofing galleries and moodboards where people shortlist while viewing full size and then want to see only what they picked.
Do not use it when favourites must be saved to an account on every tap without feedback; wire onFavouritesChange to your API and show errors where the heart is.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Default | Description |
|---|---|---|---|
photos | AlbumPhoto[] | - | Photos as { id, alt, caption?, thumb, full }. |
label | string | - | Names the grid, the dialog and the viewer. |
defaultFavourites | string[] | [] | Photo ids that start as favourites. |
onFavouritesChange | (ids: string[]) => void | - | Called whenever a heart is toggled. |
The pattern ships with a Testing Library test (album-lightbox-favorites-filter.test.tsx). Embla needs layout to count snaps, and jsdom has none, so the repo's mockCarouselLayout helper gives the viewport and slides real sizes.