Skip to content

Commit 5b95ef6

Browse files
(MediaObject): add stories corresponding to the isVerticalCenter prop
1 parent 3842c81 commit 5b95ef6

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

stories/MediaObject.stories.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ export const Figure: ComponentStoryObj<typeof MediaObject> = {
5050
},
5151
};
5252

53+
/**
54+
*
55+
*/
56+
export const FigureCenter: ComponentStoryObj<typeof MediaObject> = {
57+
name: 'Figure (Center)',
58+
args: {
59+
figureLeft: image1,
60+
isVerticalCenter: true,
61+
children: mediaContent,
62+
},
63+
parameters: {
64+
info: 'Vertically centered Media Object with figure in left',
65+
},
66+
};
67+
5368
/**
5469
*
5570
*/
@@ -64,6 +79,21 @@ export const FigureReverse: ComponentStoryObj<typeof MediaObject> = {
6479
},
6580
};
6681

82+
/**
83+
*
84+
*/
85+
export const FigureReverseCenter: ComponentStoryObj<typeof MediaObject> = {
86+
name: 'Figure - Reverse (Center)',
87+
args: {
88+
figureRight: image2,
89+
isVerticalCenter: true,
90+
children: mediaContent,
91+
},
92+
parameters: {
93+
info: 'Vertically centered Media Object with figure in right',
94+
},
95+
};
96+
6797
/**
6898
*
6999
*/
@@ -78,3 +108,19 @@ export const FigureBothSide: ComponentStoryObj<typeof MediaObject> = {
78108
info: 'Media Object with figure in left and right',
79109
},
80110
};
111+
112+
/**
113+
*
114+
*/
115+
export const FigureBothSideCenter: ComponentStoryObj<typeof MediaObject> = {
116+
name: 'Figure - Both Side (Center)',
117+
args: {
118+
figureLeft: image1,
119+
figureRight: image2,
120+
isVerticalCenter: true,
121+
children: mediaContent,
122+
},
123+
parameters: {
124+
info: 'Vertically centered Media Object with figure in left and right',
125+
},
126+
};

0 commit comments

Comments
 (0)