Skip to content

Component gallery

  1. Showcase
  2. Media cards

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Display

ThemeT
Mode
Mode
M
Style
Style
Y
Spacing
Spacing
Radius
Radius
Font size
Font size
Compare
Compare
Effects
S

ShortcutsAlt+Shift+key

Components

Primitives

  • Buttons30
  • Badges21
  • Keys4
  • Status8
  • Avatars8
  • Alerts4
  • Cards10
  • Dropdowns4
  • Corner windows3
  • Dialogs7
  • Windows4
  • Taskbar1
  • Launcher1
  • Desk icons1
  • Progress8
  • Scroll cues2

Forms

  • Toggles5
  • Selects3
  • Inputs8
  • Textareas7
  • Segmented controls4
  • Attachments18

Content

  • Quotes5
  • Stats5
  • Heatmap3
  • Icon lists2
  • Masonry2
  • Accordion2
  • Code8
  • Contact methods7

Chat

  • Messages22
  • Posts29

Showcase

  • Media cards4
  • Logos1
  • 88x31s15
  • Carousel3
  • Blueprint frames2
  • Card grids3

Media

  • Figures4
  • Audio player4
  • Media player3
  • Radio5
  • Shorts2

Toys

  • Terminal4
  • Destructor1
  • Status board7

Sections

  • Section3
  • Side hero2
  • Navbar5
  • Footer1
  • Sidebar2

Showcase · 1 of 6

Media cards

packages/ui/src/astro/blocks/media-card.astro4 stories

Preview settings
Width
Preview width
Stage
Stage
default
Props of default
<MediaCard title="Diary of a Wimpy Kid" header={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }} links={[{ href: "https://github.com/cpluspatch", icon: "lucide:github", label: "Source" }, { href: "https://example.com", icon: "lucide:globe", label: "Website" }, { href: "https://example.com/docs", icon: "lucide:book-open", label: "Docs" }]}>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod temp…
</MediaCard>
Open media-card/default on its own
Greg Heffley

Diary of a Wimpy Kid

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

  • Source
  • Website
  • Docs
no-header
Props of no-header
<MediaCard title="No header" links={[{ href: "https://github.com/cpluspatch", icon: "lucide:github", label: "Source" }, { href: "https://example.com", icon: "lucide:globe", label: "Website" }, { href: "https://example.com/docs", icon: "lucide:book-open", label: "Docs" }]}>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod temp…
</MediaCard>
Open media-card/no-header on its own

No header

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

  • Source
  • Website
  • Docs
no-links
Props of no-links
<MediaCard title="No links" header={{ src: image("/_astro/greg.B9OwiVM9.jpg"), alt: "Greg Heffley" }}>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod temp…
</MediaCard>
Open media-card/no-links on its own
Greg Heffley

No links

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore.

secondary
Props of secondary
<MediaCard title="Secondary tone" tone="secondary" links={[{ href: "https://github.com/cpluspatch", icon: "lucide:github", label: "Source" }, { href: "https://example.com", icon: "lucide:globe", label: "Website" }, { href: "https://example.com/docs", icon: "lucide:book-open", label: "Docs" }]}>
    <p>Tone passes straight through to Card.</p>
</MediaCard>
Open media-card/secondary on its own

Secondary tone

Tone passes straight through to Card.

  • Source
  • Website
  • Docs
PreviousPostsNextLogos