Skip to content

Commit

Permalink
feat(demo): Cell add example with Connected CardLarge
Browse files Browse the repository at this point in the history
  • Loading branch information
mdlufy committed Sep 15, 2024
1 parent e0d886c commit 2098aa4
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
36 changes: 29 additions & 7 deletions projects/demo/src/modules/components/cell/examples/8/index.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,32 @@
<tui-notification>
<div>
Can be attached as host directive:
<code>hostDirectives: [TuiConnected]</code>
</div>
</tui-notification>

<div
tuiCardLarge
tuiConnected
tuiSurface="elevated"
>
<h3 tuiTitle="m">Inside a block</h3>
<button
*ngFor="let item of items"
tuiCell
type="button"
>
<tui-avatar
appearance="accent"
[src]="item.icon"
/>
<span tuiTitle>
{{ item.title }}
<span tuiSubtitle>{{ item.subtitle }}</span>
</span>
</button>
</div>

<div tuiConnected>
<label tuiCell>
<tui-badged-content>
Expand Down Expand Up @@ -68,10 +97,3 @@
/>
</label>
</div>

<tui-notification>
<div>
Can be attached as host directive:
<code>hostDirectives: [TuiConnected]</code>
</div>
</tui-notification>
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ export default class Example {
{
icon: '@tui.mail',
title: 'Send message',
subtitle: 'Keep it short',
subtitle:
'Allow outgoing unusual call that can change your life in an unusual way',
},
{
icon: '@tui.lock',
Expand Down

0 comments on commit 2098aa4

Please sign in to comment.