Artwork
atomsCover or thumbnail tile: a lazy image that falls back to a seeded gradient with initials or an icon, sized by width and aspect ratio, with a corner status overlay.
Album shelf
no src, so every tile is the seeded gradient with initials; seed keeps one album one colour; hover marks the tiles as tappable.
Night Drive Kaleido · Neon Rain
Aspect, radius and fallback
aspect 1/1, 2/3 or 16/9; radius sm, md, lg or pill; fallback initials, icon or none; fit cover or contain.
Loading, broken source, status overlay and fluid width
the gradient and initials sit under every image and the image fades in once it loads, so a slow cover never shows a grey box; a failing src keeps the fallback and fires onerror; the status snippet pins a Dot or Badge bottom-right; omit size to fill the column.
live
Props
| Prop | Type | Default | Description |
|---|---|---|---|
src | string | null | — | |
srcset | string | — | |
sizes | string | — | |
alt required | string | — | |
seed | string | — | Drives the gradient hue and the initials. Defaults to `alt`. |
aspect | '1/1' | '2/3' | '16/9' | (string & {}) | '1/1' | CSS aspect-ratio, e.g. '1/1', '2/3', '16/9'. |
size | string | — | Width (any CSS length). Omit to fill the container. |
radius | 'sm' | 'md' | 'lg' | 'pill' | 'md' | |
fit | 'cover' | 'contain' | 'cover' | |
fallback | 'initials' | 'icon' | 'none' | 'initials' | |
icon | IconName | 'image' | Glyph shown when `fallback="icon"`. |
status | Snippet | — | Overlay rendered bottom-right (a Dot or Badge). |
hover | boolean | false | Stronger border + shadow on hover, for tappable tiles. |
onerror | () => void | — | |
class | string | '' |