Media Card

Image-backed content tile. A full-bleed photo under a soft bottom scrim, a mono code tag, title and meta, and one corner action — Play, a CTA, or none. Composes the Card frame with markers off, so the image carries the card identity.

MIX-01
Your MixUpdates daily
CH-04
Deep FocusAmbient · 2h

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/andromeda-media-card
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
imagestringDEFAULT_IMAGEBackground image URL for the full-bleed media.
codestring'MIX-01'Mono identifier shown in the top-left tag; a falsy value hides it.
titlestring'Your Mix'Primary title shown over the lower image edge.
metastring'Updates daily'Uppercase metadata shown beneath the title.
action'play' | 'cta' | 'none''play'Selects the card's single action treatment.
ctaLabelstring'Open'Accessible label for the CTA action's arrow icon button.
playingbooleanfalseShows the active pause control when the play action is selected.
onAction() => voidNOOPCalled when the selected play or CTA control is pressed.
heightnumber | string200CSS height of the card.
classNamestring''Additional class names applied to the Card root.
styleReact.CSSPropertiesEMPTY_STYLEInline styles merged onto the Card root.

More Andromeda components