Added 'a11y' and 'source' addons to storybook as well as more stories

This commit is contained in:
orangemug
2020-06-03 09:52:54 +01:00
parent 624ccb5b00
commit 90dfbf37e0
17 changed files with 594 additions and 6 deletions
+4 -1
View File
@@ -2,13 +2,16 @@ import React from 'react';
import Button from '../src/components/Button';
import {action} from '@storybook/addon-actions';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'Button',
component: Button,
decorators: [withA11y],
};
export const Simple = () => (
export const Basic = () => (
<Wrapper>
<Button onClick={action('onClick')}>
Hello Button