Compositions
EditorialCard
Renders an editorial content card in one of several layout variants, composing imagery, title, and subtitle into a single linkable promotional tile.
Usage
Best practices
Match the media prop to
variant:ticker/stackconsumeimages[](stack uses the first three), whilemediausesimageSrc/videoSrc- passing the wrong one renders empty media.Pass
renderImage(wrappingnext/image) in Next.js - the default is a plain<img>and skips Next optimisation; givemediaimages a meaningfulalt.Set
hrefto make the whole card a single link (it wraps in an<a>); don't nest additional links/buttons inside - useEditorialCardfor promo tiles, plainCardfor neutral content.
Props
EditorialCard
EditorialCardContent
EditorialCardMedia
EditorialCardStack
EditorialCardTicker
Also exports
- interface
EditorialCardContentProps - interface
EditorialCardImageProps - interface
EditorialCardMediaProps - interface
EditorialCardProps - interface
EditorialCardStackProps - interface
EditorialCardTickerProps - type
EditorialCardVariant
Composition
Builds on
