{"data":{"type":"contents","id":"components/card","attributes":{"html":"<h1 id=\"card\">Card</h1>\n<p>A card component that serves as a content container for images, text and links. When used within grid layouts cards are expected to share the same content structure and matching height. For accessibility reasons cards should always be implemented as lists, and for this reason the <code>&lt;EsCard&gt;</code> component's root element is a <code>&lt;li&gt;</code> so it should always be wrapped in a <code>&lt;ul&gt;</code>.</p>\n<p>Here is an example of a card</p>\n<pre><code class=\"html language-html\">&lt;ul class=\"list-unstyled layout\"&gt;\n  &lt;li class=\"card  lg:col-2\"&gt;\n    &lt;div class=\"card__content\"&gt;\n      This is a card\n    &lt;/div&gt;\n  &lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>\n<p>You can also add an image to the card using the <code>@image</code> parameter:</p>\n<pre><code class=\"html language-html\">&lt;ul class=\"list-unstyled layout\"&gt;\n  &lt;li class=\"card card--image lg:col-2\"&gt;\n    &lt;img class=\"card__image\" src=\"/images/ember-logo.png\" alt=\"\" role=\"presentation\"&gt;\n    &lt;div class=\"card__content\"&gt;\n      This is a card\n    &lt;/div&gt;\n  &lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>\n<p>Here is a fuller example of a card that has more structure in the card body</p>\n<pre><code class=\"html language-html\">&lt;ul class=\"list-unstyled layout\"&gt;\n  &lt;li class=\"card card--image lg:col-2\"&gt;\n    &lt;img class=\"card__image\" src=\"/images/ember-logo.png\" alt=\"\" role=\"presentation\"&gt;\n    &lt;div class=\"card__content\"&gt;\n      &lt;h3&gt;Ember.js&lt;/h3&gt;\n      &lt;p&gt;A framework for ambitious web developers. Try it out!&lt;/p&gt;\n      &lt;div class=\"flex-horizontal-between\"&gt;\n        &lt;div&gt;&lt;a href=\"#\"&gt;Visit Website&lt;/a&gt;&lt;/div&gt;\n        &lt;div class=\"text-sm text-muted\"&gt;COPYRIGHT 2019 TILDE INC.&lt;/div&gt;\n      &lt;/div&gt;\n    &lt;/div&gt;\n  &lt;/li&gt;\n&lt;/ul&gt;\n</code></pre>","content":"# Card\n\nA card component that serves as a content container for images, text and links. When used within grid layouts cards are expected to share the same content structure and matching height. For accessibility reasons cards should always be implemented as lists, and for this reason the `<EsCard>` component's root element is a `<li>` so it should always be wrapped in a `<ul>`.\n\nHere is an example of a card\n\n```html\n<ul class=\"list-unstyled layout\">\n  <li class=\"card  lg:col-2\">\n    <div class=\"card__content\">\n      This is a card\n    </div>\n  </li>\n</ul>\n```\n\nYou can also add an image to the card using the `@image` parameter:\n\n```html\n<ul class=\"list-unstyled layout\">\n  <li class=\"card card--image lg:col-2\">\n    <img class=\"card__image\" src=\"/images/ember-logo.png\" alt=\"\" role=\"presentation\">\n    <div class=\"card__content\">\n      This is a card\n    </div>\n  </li>\n</ul>\n```\n\nHere is a fuller example of a card that has more structure in the card body\n\n```html\n<ul class=\"list-unstyled layout\">\n  <li class=\"card card--image lg:col-2\">\n    <img class=\"card__image\" src=\"/images/ember-logo.png\" alt=\"\" role=\"presentation\">\n    <div class=\"card__content\">\n      <h3>Ember.js</h3>\n      <p>A framework for ambitious web developers. Try it out!</p>\n      <div class=\"flex-horizontal-between\">\n        <div><a href=\"#\">Visit Website</a></div>\n        <div class=\"text-sm text-muted\">COPYRIGHT 2019 TILDE INC.</div>\n      </div>\n    </div>\n  </li>\n</ul>\n```"}}}