storybook/code/lib/cli/rendererAssets/marko/1-Button.stories.js

25 lines
717 B
JavaScript

import { action } from '@storybook/addon-actions';
import Button from './Button.marko';
// More on default export: https://storybook.js.org/docs/marko/writing-stories/introduction#default-export
export default {
title: 'Button',
// More on argTypes: https://storybook.js.org/docs/marko/api/argtypes
argTypes: {
label: { control: 'text' },
},
};
// More on component templates: https://storybook.js.org/docs/marko/writing-stories/introduction#using-args
const Template = (args) => ({
component: Button,
input: args,
});
export const Text = Template.bind({});
// More on args: https://storybook.js.org/docs/marko/writing-stories/args
Text.args = {
label: 'Button',
onClick: action('onClick'),
};