mirror of
https://github.com/maputnik/editor.git
synced 2025-12-31 18:40:01 +00:00
- Moved all components into a single directory like nextjs - Made component names consistent with each other - Made component names consistent with their export class names - Added storybook for a few components with the aim to extend this further.
19 lines
348 B
JavaScript
19 lines
348 B
JavaScript
import React from 'react';
|
|
import Button from '../src/components/Button';
|
|
import {action} from '@storybook/addon-actions';
|
|
import {Wrapper} from './ui';
|
|
|
|
export default {
|
|
title: 'Button',
|
|
component: Button,
|
|
};
|
|
|
|
export const Simple = () => (
|
|
<Wrapper>
|
|
<Button onClick={action('onClick')}>
|
|
Hello Button
|
|
</Button>
|
|
</Wrapper>
|
|
);
|
|
|