mirror of
https://github.com/maputnik/editor.git
synced 2026-07-24 14:57:27 +00:00
Added 'a11y' and 'source' addons to storybook as well as more stories
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user