File tree Expand file tree Collapse file tree 6 files changed +46
-2
lines changed
apps/docs/src/stories/Layouts
packages/core/src/layouts Expand file tree Collapse file tree 6 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 1111 <component-info src =" packages/core/src/layouts/Split/SplitItem.vue" />
1212 </template >
1313
14- <story-canvas title =" Split" >
14+ <story-canvas title =" Basic" >
15+ <pf-split >
16+ <pf-split-item >content</pf-split-item >
17+ <pf-split-item filled >pf-m-fill</pf-split-item >
18+ <pf-split-item >content</pf-split-item >
19+ </pf-split >
20+ </story-canvas >
21+
22+ <story-canvas title =" With gutter" >
1523 <pf-split gutter >
1624 <pf-split-item >content</pf-split-item >
1725 <pf-split-item filled >pf-m-fill</pf-split-item >
1826 <pf-split-item >content</pf-split-item >
1927 </pf-split >
2028 </story-canvas >
29+
30+ <story-canvas title =" Wrappable" >
31+ <pf-split gutter wrappable >
32+ <pf-split-item >content</pf-split-item >
33+ <pf-split-item >content</pf-split-item >
34+ <pf-split-item >content</pf-split-item >
35+ <pf-split-item >content</pf-split-item >
36+ <pf-split-item >content</pf-split-item >
37+ <pf-split-item >content</pf-split-item >
38+ <pf-split-item >content</pf-split-item >
39+ <pf-split-item >content</pf-split-item >
40+ <pf-split-item >content</pf-split-item >
41+ <pf-split-item >content</pf-split-item >
42+ <pf-split-item >content</pf-split-item >
43+ <pf-split-item >content</pf-split-item >
44+ <pf-split-item >content</pf-split-item >
45+ </pf-split >
46+ </story-canvas >
2147 </doc-page >
2248</template >
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ defineOptions({
2525
2626export interface Props extends /* @vue-ignore */ HTMLAttributes {
2727 component? : string | Component ;
28+
29+ /** Adds space between children. */
2830 gutter? : boolean ;
2931
3032 /** Minimum width */
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ export type GridSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12
2626
2727export interface Props extends OrderBreakpointProps , /* @vue-ignore */ HTMLAttributes {
2828 component? : string | Component ;
29+
30+ /** Adds space between children. */
2931 gutter? : boolean ;
3032
3133 /** The number of rows a column in the grid should span. Value should be a number 1-12 */
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ defineOptions({
1414
1515export interface Props extends /* @vue-ignore */ HTMLAttributes {
1616 component? : string | Component ;
17+
18+ /** Adds space between children. */
1719 gutter? : boolean ;
1820}
1921
Original file line number Diff line number Diff line change 11<template >
2- <component :is =" component" :class =" [styles.split, { [styles.modifiers.gutter]: gutter }]" >
2+ <component
3+ :is =" component"
4+ :class =" [styles.split, {
5+ [styles.modifiers.gutter]: gutter,
6+ [styles.modifiers.wrap]: wrappable,
7+ }]"
8+ >
39 <slot />
410 </component >
511</template >
@@ -14,7 +20,11 @@ defineOptions({
1420
1521export interface Props extends /* @vue-ignore */ HTMLAttributes {
1622 component? : string | Component ;
23+
24+ /** Adds space between children. */
1725 gutter? : boolean ;
26+ /** Allows children to wrap */
27+ wrappable? : boolean ;
1828}
1929
2030withDefaults (defineProps <Props >(), {
Original file line number Diff line number Diff line change @@ -14,6 +14,8 @@ defineOptions({
1414
1515export interface Props extends /* @vue-ignore */ HTMLAttributes {
1616 component? : string | Component ;
17+
18+ /** Adds space between children. */
1719 gutter? : boolean ;
1820}
1921
You can’t perform that action at this time.
0 commit comments