Media

Media objects provide you with a flexible component that can be easily nested and repeated, such as blog comments and tweets.

Example

Media objects are useful for repetitive components that have a media element positioned alongside them, such as an user image or blog post image.

Media Example

Nesting

Media components can be nested inside one another to create a parent-child relationship between related components.

Media Nesting

Alignment

The media element in a media component can be aligned with flexbox helper classes to the top (default), middle, or end of the .body content.

Media Alignment Start
Media Alignment Center
Media Alignment End

Component API

Here you can find the slot options for the media component.

Media API

Sass Variables

Here you can find a list of the Sass variables you can use for the media components. If you're looking to find common variables that these rely on, you should take a look at the Sass Variables page.

Media