Merge pull request #2907 from chmelevskij/chore/storybook-for-existing-components
chore: stories for BatteryLegend and StatusBar10.8-maintenance
commit
af0f2aa444
|
@ -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