Skip to content

Commit 9904abd

Browse files
committed
chore: stories for BatteryLegend and StatusBar
1 parent 52d8a16 commit 9904abd

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import BatteryLegend from './BatteryLegend.vue';
2+
3+
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
4+
export default {
5+
title: 'Battery Legend',
6+
component: BatteryLegend,
7+
};
8+
9+
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
10+
const Template = (_args, { argTypes }) => ({
11+
props: Object.keys(argTypes),
12+
components: { BatteryLegend },
13+
template: '<battery-legend v-bind="$props" />',
14+
});
15+
16+
export const Primary = Template.bind({});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import StatusBar from "./StatusBar.vue";
2+
3+
// More on default export: https://storybook.js.org/docs/vue/writing-stories/introduction#default-export
4+
export default {
5+
title: "Status Bar",
6+
component: StatusBar,
7+
};
8+
9+
// More on component templates: https://storybook.js.org/docs/vue/writing-stories/introduction#using-args
10+
const Template = (_args, { argTypes }) => ({
11+
props: Object.keys(argTypes),
12+
components: { StatusBar },
13+
template: '<status-bar v-bind="$props" />',
14+
});
15+
16+
export const Primary = Template.bind({});

0 commit comments

Comments
 (0)