Media

You can use the Media component to display images scaled to a specific aspect ratio. The default included aspect ratios are 16-9, 4-3, and 1-1. You can add more by either using the react-md-media-aspect-ratio mixin, or updating the md-media-aspect-ratios variable with additional values.

The Media component will scale to whatever the size of its container is and maintain the aspect ratio.

Something from unsplash.it

Enim duis ullamco fugiat mollit labore ad proident velit ipsum dolore qui laborum nostrud aliqua. Amet Lorem magna sunt amet deserunt ex tempor nisi cillum culpa aliquip sit irure. Officia veniam eu minim fugiat pariatur. Esse nisi voluptate sint aute deserunt voluptate deserunt ullamco commodo. Nulla tempor id sit sunt enim. Ipsum ex id consectetur aute aute officia amet exercitation quis ipsum sint ea laborum enim. Elit aute voluptate excepteur cupidatat ea occaecat.

Something from unsplash.it

Wow. Amazing.

Consequat commodo excepteur minim voluptate sit ullamco veniam commodo. Est est id eu cupidatat esse mollit irure duis dolor do enim laborum. Elit aliquip incididunt nostrud irure. Nostrud dolore dolore do adipisicing magna cupidatat reprehenderit officia aliquip. Id eu et non dolor anim nostrud ut mollit minim.

Something from unsplash.it

Qui qui veniam consectetur non do dolore anim nostrud dolor. Eiusmod non id laborum dolore eu voluptate dolor deserunt ipsum ea. Veniam sint laborum anim elit enim. Anim eiusmod ad laborum irure. Ex ullamco veniam mollit fugiat ullamco eu. Tempor amet pariatur nulla cillum labore elit.

By default, img, iframe, svg, video, embed, and object elements will be scaled correctly within a Media component. These defaults can be changed by updating the md-media-embedded-selectors.

The MediaOverlay component can even be used above videos, even though that might not really be the best idea.

A chemistry set with material design colors flowing into a text editor.

Archer