Files
threshold-ui/ui/desktop/app/components/card/index.hbs
T
Zhihe Li b55c50cf64 Chore/update linter (#1355)
* chore: 🤖 Update editor config settings

* chore: 🤖 Add back ember-template-lint-plugin-prettier

* style: 💄 Format admin

* style: 💄 Format desktop

* style: 💄 Format rose

* style: 💄 Format core

* style: 💄 Format api
2022-10-06 11:41:12 -04:00

27 lines
534 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>