Example
There are three types of cards: elevated, filled, and outlined
Regular
card
Filled
card
Outlined
card
Actionable
ripple
Basic card

Headline
Subhead
Supporting text. Contrary to popular belief, Lorem Ipsum is not simply random text.
Some other content. Just add your content without specifying slots
Actionable
Ripple
Click to see ripple
<mc-card style="max-width: 320px">
<img slot="image" class="rounded medium" alt="landscape" src="..." />
<div slot="headline">Headline</div>
<div slot="subhead">Subhead</div>
<div slot="supporting-text">Supporting text. Contrary to popular belief, Lorem Ipsum is not simply random text.</div>
<div>Some other content. Just add your content without specifying slots</div>
</mc-card>
<mc-card style="width: 220px; height: 120px;" onclick="console.log('action')">
<div slot="headline">Actionable</div>
<div slot="subhead">Ripple</div>
<div slot="supporting-text">Click to see ripple</div>
</mc-card>
Card types
Regular
card
Filled
card
Outlined
card
<mc-card>
<div slot="headline">Regular</div>
<div slot="subhead">card</div>
</mc-card>
<mc-card filled>
<div slot="headline">Filled</div>
<div slot="subhead">card</div>
</mc-card>
<mc-card outlined>
<div slot="headline">Outlined</div>
<div slot="subhead">card</div>
</mc-card>
Expanding card

Headline
Subhead
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin
literature

Expanding with scroll
Subhead
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin
literature
from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College
in
Virginia,
looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through
the
cites of
the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections
1.10.32 and
1.10.33
of "de Finibus Bonorum et Malorum" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book
is a
treatise
on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, "Lorem ipsum
dolor
sit
amet..", comes from a line in section 1.10.32.
The standard chunk of Lorem Ipsum used since the 1500s is reproduced below for those interested. Sections
1.10.32 and
1.10.33 from "de Finibus Bonorum et Malorum" by Cicero are also reproduced in their exact original form,
accompanied
by
English versions from the 1914 translation by H. Rackham.
<mc-card>
<img slot="image" class="medium rounded" alt="landscape"
src="..." />
<div slot="headline">Headline</div>
<div slot="subhead">Subhead</div>
<div slot="expanded">
<div class="supporting-text">
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin literature
</div>
</div>
</mc-card>
<mc-card style="max-width: 320px">
<img slot="image" class="rounded medium" alt="landscape"
src="..." />
<div slot="headline">Expanding with scroll</div>
<div slot="subhead">Subhead</div>
<div slot="expanded">
<div class="supporting-text">
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin
</div>
</div>
</mc-card>
Grids and lists
By default the container will auto swap between grid and list based on screen size. You can for
it to always be be one or the other by using classes: 'grid' 'mc-list'

Headline
Subhead
one two three four five six.
<div slot="supporting-text">
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin literature. Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece
of classical Latin literature
</div>

Headline
Subhead
one two three four five six.

Headline
Subhead
one two three four five six.

Headline
Subhead
one two three four five six.

Headline
Subhead
one two three four five six.
<div slot="supporting-text">
Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical
Latin literature. Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece
of classical Latin literature
</div>

Headline
Subhead
one two three four five six.
<mc-card-group>
<mc-card></mc-card>
<mc-card></mc-card>
<mc-card></mc-card>
<mc-card></mc-card>
<mc-card></mc-card>
<mc-card></mc-card>
</mc-card-group>
Drag reorder - move item position
Press and hold on card to reorder
By default the container will auto swap between grid and list based on screen size. You
can for it to always be be one or the other by using classes: 'grid' 'mc-list'
Reordering has two options shifting all elements (default). Or you can enable swap.

0
Subhead
one two three four five six.

1
Subhead
one two three four five six.

2
Subhead
one two three four five six.

3
Subhead
one two three four five six.

4
Subhead
one two three four five six.

5
Subhead
one two three four five six.
<mc-card-group reorder>
<mc-card></mc-card>
<mc-card></mc-card>
<mc-card></mc-card>
</mc-card-group>
<!-- Swap -->
<mc-card-group reorder swap>
<mc-card></mc-card>
<mc-card></mc-card>
<mc-card></mc-card>
</mc-card-group>
Swipe actions
Only works on mobile
Favorite toggle
Subhead
one two three four five six.
Remove
Subhead
one two three four five six.
<mc-card style="max-width: 320px;" value="favorite" onchange="console.log(event.detail)">
<mc-icon slot="swipe-action" action="favorite" toggle>favorite</mc-icon>
<div slot="headline">Favorite toggle</div>
<div slot="subhead">Subhead</div>
<div slot="supporting-text">one two three four five six.</div>
</mc-card>
<mc-card style="max-width: 320px;" value="favorite" onchange="console.log(event.detail)">
<mc-icon slot="swipe-action" action="remove" action-remove>delete</mc-icon>
<div slot="headline">Remove</div>
<div slot="subhead">Subhead</div>
<div slot="supporting-text">one two three four five six.</div>
</mc-card>
Style
CSS variables that allow you override default values
/* Optional variables for overriding */
--mc-card-shape: var(--mc-shape-medium);
--mc-card-container-color: var(--mc-surface-container-low);
--mc-card-text-color: var(--mc-on-surface);
--mc-card-container-color-outlined: var(--mc-surface);
--mc-card-container-color-filled: var(--mc-surface-container-highest);
--mc-card-text-color-filled: var(--mc-on-surface-variant);
--mc-card-header-text-color: var(--mc-on-surface);
--mc-card-subhead-text-color: var(--mc-on-surface-variant);
--mc-card-supporting-text-color: var(--mc-on-surface-variant);