Files
threshold-ui/ui/desktop/app/components/card/index.hbs
T
Zhihe Li ccf462019b chore: 🤖 Add eol-last rule (#1296)
* chore: 🤖 Add eol-last rule

* style: 💄 Add newlines for core

* style: 💄 Add newlines to EOF in rose

* style: 💄 Add newlines for admin

* style: 💄 Add newlines in desktop templates
2022-09-01 17:43:30 -04:00

28 lines
535 B
Handlebars

<section class='card'>
{{#if (if (has-block 'header') true @heading)}}
<header class='card-header'>
{{#if @heading}}
<h2>
{{#if @icon}}
<Rose::Icon @name={{@icon}} @size='medium' />
{{/if}}
{{@heading}}
</h2>
{{/if}}
{{yield to='header'}}
</header>
{{/if}}
<div class='card-body'>
{{yield to='body'}}
</div>
{{#if (has-block 'footer')}}
<footer class='card-footer'>
{{yield to='footer'}}
</footer>
{{/if}}
</section>