From df2e0337b5aca00a78e4bd93c6b49a5c4b06221e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ja=CC=81n=20Mikla=CC=81s=CC=8C?= Date: Mon, 4 May 2020 13:13:35 +0200 Subject: [PATCH] Add story for buttons with icons [MAILPOET-2771] --- .../common/button/_stories/assets/icon.tsx | 7 + .../common/button/_stories/button_icons.tsx | 254 ++++++++++++++++++ 2 files changed, 261 insertions(+) create mode 100644 assets/js/src/common/button/_stories/assets/icon.tsx create mode 100644 assets/js/src/common/button/_stories/button_icons.tsx diff --git a/assets/js/src/common/button/_stories/assets/icon.tsx b/assets/js/src/common/button/_stories/assets/icon.tsx new file mode 100644 index 0000000000..26d5bf7f28 --- /dev/null +++ b/assets/js/src/common/button/_stories/assets/icon.tsx @@ -0,0 +1,7 @@ +import React from 'react'; + +export default ( + + + +); diff --git a/assets/js/src/common/button/_stories/button_icons.tsx b/assets/js/src/common/button/_stories/button_icons.tsx new file mode 100644 index 0000000000..3de580eb99 --- /dev/null +++ b/assets/js/src/common/button/_stories/button_icons.tsx @@ -0,0 +1,254 @@ +import React from 'react'; +import { action } from '@storybook/addon-actions'; +import Button from '../button'; +import Heading from '../../typography/heading/heading'; +import icon from './assets/icon'; + +export default { + title: 'Buttons', + component: Button, +}; + +export const WithIcons = () => ( + <> + Small buttons +

+ + + + +

+
+ + Regular buttons +

+ + + + + +

+
+ + Large buttons +

+ + + + +

+
+ + Loading buttons +

+ + + + +

+
+ + Full width buttons +

+ + + + +

+
+ +);