chore: 🤖 Add flex wrap and attributes
This commit is contained in:
3 files changed
+21
-2
No files matched your search
@@ -10,7 +10,7 @@ import { text, boolean, select } from '@storybook/addon-knobs';
|
||||
A set of cards arranged side-by-side.
|
||||
|
||||
<Preview>
|
||||
<Story name="Basic Cards">{{
|
||||
<Story name="Basic Cards" height="20rem">{{
|
||||
template: hbs`
|
||||
<Rose::Cards as |cards|>
|
||||
<cards.link
|
||||
@@ -23,6 +23,21 @@ A set of cards arranged side-by-side.
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
/>
|
||||
<cards.link
|
||||
@route="index"
|
||||
@title="Card Title"
|
||||
@description="Description"
|
||||
/>
|
||||
</Rose::Cards>
|
||||
`,
|
||||
context: {}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
.rose-cards {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
<div class="rose-cards">
|
||||
<div
|
||||
...attributes
|
||||
class="rose-cards"
|
||||
>
|
||||
{{yield (hash
|
||||
link=(component "rose/card/link")
|
||||
)}}
|
||||
|
||||
Reference in new issue
Block a user