fbredius/storybook

View on GitHub
examples/html-kitchen-sink/stories/addon-controls.stories.js

Summary

Maintainability
A
0 mins
Test Coverage
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!' };