Files
threshold-ui/ui/desktop/app/components/settings-card/index.hbs
T
2024-09-24 11:58:25 -04:00

36 lines
800 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
}}
<Hds::Card::Container @level='mid' @hasBorder={{true}}>
<div class='header-and-icon'>
<Hds::IconTile @icon={{@icon}} @size='small' />
<Hds::Text::Display @tag='h4'>
{{@header}}
</Hds::Text::Display>
{{#if (has-block 'state')}}
{{yield to='state'}}
{{/if}}
{{#if (has-block 'action')}}
<div class='action'>
{{yield to='action'}}
</div>
{{/if}}
</div>
{{#if @description}}
<Hds::Text::Body @tag='p' @color='faint' @size='100'>
{{@description}}
</Hds::Text::Body>
{{/if}}
{{! this yields the body from consumer }}
{{#if (has-block 'body')}}
<div class='content'>
{{yield to='body'}}
</div>
{{/if}}
</Hds::Card::Container>