GalleryCard
GalleryCard — a cover image with badges and actions overlaid, and a title/subtitle footer. The media-first card that galleries, libraries and course lists all draw: `Card` + `AspectRatio` + the two overlay slots. With `onClick` the cover and footer are one `<button>` named by the title (or the alt text), so the surface is a single tab stop. `actions` render as a sibling of that button, absolutely positioned top-right over the cover, so interactive actions (icon buttons, a menu) never nest inside it; `badges` are not interactive and stay inside. Without `src`, or while `loading`, the cover is a `bg-muted` box carrying a `Skeleton`, so a grid of cards keeps its shape before the data lands.
packages/ui/src/components/patterns/gallery-card.tsx
@marktiderman/genesis-ui/patternsimport { GalleryCard } from "@marktiderman/genesis-ui/patterns";react-docgen-typescript.GalleryCard
GalleryCard — a cover image with badges and actions overlaid, and a title/subtitle footer. The media-first card that galleries, libraries and course lists all draw: `Card` + `AspectRatio` + the two overlay slots. With `onClick` the cover and footer are one `<button>` named by the title (or the alt text), so the surface is a single tab stop. `actions` render as a sibling of that button, absolutely positioned top-right over the cover, so interactive actions (icon buttons, a menu) never nest inside it; `badges` are not interactive and stay inside. Without `src`, or while `loading`, the cover is a `bg-muted` box carrying a `Skeleton`, so a grid of cards keeps its shape before the data lands.
| Prop | Type | Default | Description |
|---|---|---|---|
| actions | ReactNode | — | Overlaid top-right on the cover (icon buttons, a menu). |
| alt | string | — | |
| badges | ReactNode | — | Overlaid top-left on the cover; several badges sit in a row with a gap. |
| className | string | — | |
| loading | boolean | false | Shows a skeleton cover (and title/subtitle skeletons) while the item loads. |
| onClick | (() => void) | — | Makes the whole card a button. |
| ratio | number | 4 / 3 | Cover aspect ratio, width ÷ height. Default 4/3. |
| src | string | — | Cover image. Without it the cover is a muted placeholder. |
| subtitle | string | — | |
| title | string | — |