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 +

+ + + + +

+
+ +);