Use the ld-card-stack
component to display multiple ld-card
s in a stack.
<ld-card-stack>
<ld-card>Card A</ld-card>
<ld-card>Card B</ld-card>
<ld-card>Card C</ld-card>
<ld-card>Card D</ld-card>
<ld-card>Card E</ld-card>
</ld-card-stack>
<ol class="ld-card-stack">
<li class="ld-card">Card A</li>
<li class="ld-card">Card B</li>
<li class="ld-card">Card C</li>
<li class="ld-card">Card D</li>
<li class="ld-card">Card E</li>
</ol>
<LdCardStack>
<LdCard>Card A</LdCard>
<LdCard>Card B</LdCard>
<LdCard>Card C</LdCard>
<LdCard>Card D</LdCard>
<LdCard>Card E</LdCard>
</LdCardStack>
<ld-card-stack direction="ltr">
<ld-card>Card A</ld-card>
<ld-card>Card B</ld-card>
<ld-card>Card C</ld-card>
<ld-card>Card D</ld-card>
<ld-card>Card E</ld-card>
</ld-card-stack>
<ol class="ld-card-stack ld-card-stack--ltr">
<li class="ld-card">Card A</li>
<li class="ld-card">Card B</li>
<li class="ld-card">Card C</li>
<li class="ld-card">Card D</li>
<li class="ld-card">Card E</li>
</ol>
<LdCardStack direction="ltr">
<LdCard>Card A</LdCard>
<LdCard>Card B</LdCard>
<LdCard>Card C</LdCard>
<LdCard>Card D</LdCard>
<LdCard>Card E</LdCard>
</LdCardStack>
<ld-card-stack direction="rtl">
<ld-card>Card A</ld-card>
<ld-card>Card B</ld-card>
<ld-card>Card C</ld-card>
<ld-card>Card D</ld-card>
<ld-card>Card E</ld-card>
</ld-card-stack>
<ol class="ld-card-stack ld-card-stack--rtl">
<li class="ld-card">Card A</li>
<li class="ld-card">Card B</li>
<li class="ld-card">Card C</li>
<li class="ld-card">Card D</li>
<li class="ld-card">Card E</li>
</ol>
<LdCardStack direction="rtl">
<LdCard>Card A</LdCard>
<LdCard>Card B</LdCard>
<LdCard>Card C</LdCard>
<LdCard>Card D</LdCard>
<LdCard>Card E</LdCard>
</LdCardStack>
<ld-card-stack direction="vertical">
<ld-card>Card A</ld-card>
<ld-card>Card B</ld-card>
<ld-card>Card C</ld-card>
<ld-card>Card D</ld-card>
<ld-card>Card E</ld-card>
</ld-card-stack>
<ol class="ld-card-stack ld-card-stack--vertical">
<li class="ld-card">Card A</li>
<li class="ld-card">Card B</li>
<li class="ld-card">Card C</li>
<li class="ld-card">Card D</li>
<li class="ld-card">Card E</li>
</ol>
<LdCardStack direction="vertical">
<LdCard>Card A</LdCard>
<LdCard>Card B</LdCard>
<LdCard>Card C</LdCard>
<LdCard>Card D</LdCard>
<LdCard>Card E</LdCard>
</LdCardStack>
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
direction |
direction |
The stack direction. | "ltr" | "rtl" | "vertical" |
undefined |
key |
key |
for tracking the node's identity when working with lists | string | number |
undefined |
ref |
ref |
reference to component | any |
undefined |
Built with StencilJS