chore: stories for BatteryLegend and StatusBar

10.8-maintenance
Tomas Chmelevskij 2022-04-27 15:33:28 +02:00
parent 52d8a166de
commit 9904abd7eb
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({});