@@ -21,14 +21,14 @@ By default, each item is stacked vertically. Stack clones it's children and pass
2121
2222``` vue live=true
2323<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>
3232</c-stack>
3333```
3434
@@ -40,14 +40,14 @@ Optionally, you can use align and justify to adjust the alignment and distributi
4040
4141``` vue live=true
4242<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>
5151</c-stack>
5252```
5353
@@ -57,14 +57,27 @@ Pass the `isReversed` prop or set `direction` to `row-reverse` or `column-revers
5757
5858``` vue live=true
5959<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>
6881</c-stack>
6982```
7083
0 commit comments