From 032f15f2d0d3bb34427e95172184be6b5946b4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Sun, 10 May 2020 21:00:58 +0200 Subject: [PATCH] Add story for all grid layouts [MAILPOET-2774] --- assets/js/src/common/grid/_stories/grid.tsx | 96 +++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 assets/js/src/common/grid/_stories/grid.tsx diff --git a/assets/js/src/common/grid/_stories/grid.tsx b/assets/js/src/common/grid/_stories/grid.tsx new file mode 100644 index 0000000000..335c71fc28 --- /dev/null +++ b/assets/js/src/common/grid/_stories/grid.tsx @@ -0,0 +1,96 @@ +import React from 'react'; +import Heading from '../../typography/heading/heading'; +import Grid from '..'; + +export default { + title: 'Grid', +}; + +export const Layouts = () => { + const content = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi libero sapien, tristique sollicitudin lobortis id, viverra id libero.'; + + return ( + <> + Column + + {content} + + +
+ + Column - small + + {content} + + +
+ + Two columns + +
{content}
+
{content}
+
+ +
+ + Three columns + +
{content}
+
{content}
+
{content}
+
+ +
+ + Two columns list + + +
+ Option 1 +
+ Option 2 +
+ Option 3 +
+ Option 4 +
+ Option 5 +
+
+
+
+ +
+ + Space between + + +
+ Left +
+ Part +
+
+ Right Part +
+
+
+ +
+ + Space between - vertically centered + + +
+ Left +
+ Part +
+
+ Right Part +
+
+
+ + ); +};