mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
17 lines
334 B
JavaScript
17 lines
334 B
JavaScript
export default {
|
|
title: 'Addons/Controls',
|
|
argTypes: {
|
|
label: { type: { name: 'string' } },
|
|
},
|
|
};
|
|
|
|
const Template = ({ label }) => {
|
|
return `<div>${label}</div>`;
|
|
};
|
|
|
|
export const Hello = Template.bind({});
|
|
Hello.args = { label: 'Hello!' };
|
|
|
|
export const Bonjour = Template.bind({});
|
|
Bonjour.args = { label: 'Bonjour!' };
|