Merge pull request #2907 from chmelevskij/chore/storybook-for-existing-components

chore: stories for BatteryLegend and StatusBar
10.8-maintenance
Tomas Chmelevskij 2022-04-28 22:05:59 +02:00 committed by GitHub
commit af0f2aa444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import BatteryLegend from './BatteryLegend.vue';
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
export default {
title: 'Battery Legend',
component: BatteryLegend,
};
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
const Template = (_args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { BatteryLegend },
template: '<battery-legend v-bind="$props" />',
});
export const Primary = Template.bind({});

View File

@ -0,0 +1,16 @@
import StatusBar from "./StatusBar.vue";
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
export default {
title: "Status Bar",
component: StatusBar,
};
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
const Template = (_args, { argTypes }) => ({
props: Object.keys(argTypes),
components: { StatusBar },
template: '<status-bar v-bind="$props" />',
});
export const Primary = Template.bind({});