Genesis
@beta

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

Import
Subpath export: @marktiderman/genesis-ui/patterns
import { GalleryCard } from "@marktiderman/genesis-ui/patterns";
Components
Auto-generated from TypeScript source via 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.

PropTypeDefaultDescription
actionsReactNode—Overlaid top-right on the cover (icon buttons, a menu).
altstring—
badgesReactNode—Overlaid top-left on the cover; several badges sit in a row with a gap.
classNamestring—
loadingbooleanfalseShows a skeleton cover (and title/subtitle skeletons) while the item loads.
onClick(() => void)—Makes the whole card a button.
rationumber4 / 3Cover aspect ratio, width ÷ height. Default 4/3.
srcstring—Cover image. Without it the cover is a muted placeholder.
subtitlestring—
titlestring—
Storybook
Storybook hosts the canonical visual reference with controls for every variant.