@@ -21,14 +21,14 @@ By default, each item is stacked vertically. Stack clones it's children and pass
21
21
22
22
``` vue live=true
23
23
<c-stack :spacing="5">
24
- <c-box :p="5" shadow="md" border-width="1px">
25
- <c-heading>See the Vue</c-heading>
26
- <c-text :mt="4">Vue makes front-end development a breeze.</c-text>
27
- </c-box>
28
- <c-box :p="5" shadow="md" border-width="1px">
29
- <c-heading>Go Nuxt!</c-heading>
30
- <c-text :mt="4">Nuxt makes writing Vue even easier.</c-text>
31
- </c-box>
24
+ <c-box :p="5" shadow="md" border-width="1px">
25
+ <c-heading>See the Vue</c-heading>
26
+ <c-text :mt="4">Vue makes front-end development a breeze.</c-text>
27
+ </c-box>
28
+ <c-box :p="5" shadow="md" border-width="1px">
29
+ <c-heading>Go Nuxt!</c-heading>
30
+ <c-text :mt="4">Nuxt makes writing Vue even easier.</c-text>
31
+ </c-box>
32
32
</c-stack>
33
33
```
34
34
@@ -40,14 +40,14 @@ Optionally, you can use align and justify to adjust the alignment and distributi
40
40
41
41
``` vue live=true
42
42
<c-stack :spacing="5" is-inline>
43
- <c-box :p="5" shadow="md" border-width="1px">
44
- <c-heading>See the Vue</c-heading>
45
- <c-text :mt="4">Vue makes front-end development a breeze.</c-text>
46
- </c-box>
47
- <c-box :p="5" shadow="md" border-width="1px">
48
- <c-heading>Go Nuxt!</c-heading>
49
- <c-text :mt="4">Nuxt makes writing Vue even easier.</c-text>
50
- </c-box>
43
+ <c-box :p="5" shadow="md" border-width="1px">
44
+ <c-heading>See the Vue</c-heading>
45
+ <c-text :mt="4">Vue makes front-end development a breeze.</c-text>
46
+ </c-box>
47
+ <c-box :p="5" shadow="md" border-width="1px">
48
+ <c-heading>Go Nuxt!</c-heading>
49
+ <c-text :mt="4">Nuxt makes writing Vue even easier.</c-text>
50
+ </c-box>
51
51
</c-stack>
52
52
```
53
53
@@ -57,14 +57,27 @@ Pass the `isReversed` prop or set `direction` to `row-reverse` or `column-revers
57
57
58
58
``` vue live=true
59
59
<c-stack :spacing="5" is-reversed>
60
- <c-box :p="5" shadow="md" border-width="1px">
61
- <c-heading>See the Vue</c-heading>
62
- <c-text :mt="4">Vue makes front-end development a breeze.</c-text>
63
- </c-box>
64
- <c-box :p="5" shadow="md" border-width="1px">
65
- <c-heading>Go Nuxt!</c-heading>
66
- <c-text :mt="4">Nuxt makes writing Vue even easier.</c-text>
67
- </c-box>
60
+ <c-box :p="5" shadow="md" border-width="1px">
61
+ <c-heading>See the Vue</c-heading>
62
+ <c-text :mt="4">Vue makes front-end development a breeze.</c-text>
63
+ </c-box>
64
+ <c-box :p="5" shadow="md" border-width="1px">
65
+ <c-heading>Go Nuxt!</c-heading>
66
+ <c-text :mt="4">Nuxt makes writing Vue even easier.</c-text>
67
+ </c-box>
68
+ </c-stack>
69
+ ```
70
+
71
+ ## Stacking HTML elements
72
+ The ` CStack ` element is able also to stack HTML elements. Internally it wraps HTML elements inside a ` CBox ` primitive
73
+ component and spaces it like it would any other Chakra component.
74
+
75
+ ``` vue live=true
76
+ <c-stack :spacing="4">
77
+ <c-text>Chakra component 1</c-text>
78
+ <p>HTML paragraph element</p>
79
+ <h3>HTML heading element</h3>
80
+ <c-text>Chakra component 2</c-text>
68
81
</c-stack>
69
82
```
70
83
0 commit comments