Cards are useful to hold content. They have been used to contain content related to screeners and tasks.
This is where the card info would go.
This is a footer
<tk-card size="small">
<tk-card-header>
<h3 class="t-large">Small Card</h3>
</tk-card-header>
<tk-card-body>
<h4 class="t-medium">Card Content</h4>
<p>This is where the card info would go.</p>
</tk-card-body>
<tk-card-footer>
<p>This is a footer</p>
</tk-card-footer>
</tk-card>
Small cards are used for containing content in a small area.
This will span full width of its container.
<tk-card size="medium">
<tk-card-header>
<h3 class="t-large">Medium Card</h3>
</tk-card-header>
<tk-card-body>
<h4 class="t-medium">Card Content</h4>
<p>This will span full width of its container.</p>
</tk-card-body>
</tk-card>
Medium cards are used for containing content in a medium area.
<tk-card moveable>
<tk-card-header>
<h3 class="t-large">Moveable Card</h3>
<tk-card-toolbar>
<button type="button" class="btn--link">Card Button</button>
</tk-card-toolbar>
</tk-card-header>
<tk-card-body>
<h4 class="t-medium">Uses:</h4>
<ul class="bulleted-list">
<li>Screener Questions</li>
<li>Task Editor</li>
<li>Highlight Reel</li>
</ul>
</tk-card-body>
</tk-card>
This card pattern works well with droppable and draggable styles. Moveable cards house content that give customers the ability to manipulate their order. This makes them great for screeners and tasks.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem
<div class="card-counter">
<!-- card #1 -->
<tk-card size="medium">
<tk-card-header>
<tk-badge numbered></tk-badge>
<h3 class="t-medium m-0x task__count">Header</h3>
</tk-card-header>
<tk-card-body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem</p>
</tk-card-body>
</tk-card>
<!-- card #2 -->
<tk-card class="mt-4x" size="medium">
<tk-card-header>
<tk-badge numbered></tk-badge>
<h3 class="t-medium m-0x task__count">Header</h3>
<tk-card-toolbar>
<button type="button" class="btn--link">Card Button</button>
</tk-card-toolbar>
</tk-card-header>
<tk-card-body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus ac lorem</p>
</tk-card-body>
</tk-card>
</div>
Like moveable cards, numerated cards are often paired with screeners and tasks to serve as a reference in which the content will be seen.
The spacing is tighter for compact cards.
<tk-card compact>
<tk-card-header>
<h3 class="t-large">Compact Card</h3>
<tk-card-toolbar>
<button type="button" class="btn--link">Card Button</button>
</tk-card-toolbar>
</tk-card-header>
<tk-card-body>
<h4 class="t-medium">Card Content</h4>
<p>The spacing is tighter for compact cards.</p>
</tk-card-body>
</tk-card>
Compact cards should be used when the outer container is compacted.
:focus
Property | Type | Default | Description |
---|---|---|---|
size |
large medium small |
medium |
Sets the size of the card. |
moveable |
boolean |
false |
Sets whether the card is moveable . |
compact |
boolean |
false |
Sets whether the card is compact which tightens up the spacing on the element. |