mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
16 lines
333 B
JavaScript
16 lines
333 B
JavaScript
import React from 'react';
|
|
import centered from '@storybook/addon-centered/react';
|
|
|
|
import BaseButton from '../components/BaseButton';
|
|
|
|
export default {
|
|
title: 'Addons|Centered',
|
|
decorators: [centered],
|
|
};
|
|
|
|
export const story1 = () => <BaseButton label="This story should be centered" />;
|
|
|
|
story1.story = {
|
|
name: 'story 1',
|
|
};
|