chore: stories for BatteryLegend and StatusBar
parent
52d8a166de
commit
9904abd7eb
|
@ -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({});
|
|
@ -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({});
|
Loading…
Reference in New Issue