v0.2.1
Patch Changes
- Updated dependencies [4d3c523]
- @behivetech/atoms.card@0.6.1
A card with an image on top and a title, subtitle and meta row below, for artwork lists, artist tiles and booking previews. It composes `atoms.card` with no padding, so fill, border and corners are Card's.
48c9e6b: Use the shared hooks.use-image-status, extract the media box as an inner BHT__ImageCardMedia block, switch the Grid Row example to repeat(auto-fill, minmax(10.5rem, 1fr)) and document that a wrapper or <picture> as media needs a key on the card.
Class names changed, which breaks any app CSS that targets them:
BHT__ImageCard__media is now BHT__ImageCardMediaBHT__ImageCard__fallback is now BHT__ImageCardMedia__fallbackBHT__ImageCard--aspect-* is now BHT__ImageCardMedia--aspect-*molecules.image-card: a media slot over an atoms.card body with title, subtitle and meta, an optional single link named by the title (href and linkComponent), aspectRatio of 4/5, 1/1 or 3/2, and an image icon fallback when the image fails to load.