UNPKG

@shopware-ag/meteor-component-library

Version:

The meteor component library is a Vue component library developed by Shopware. It is based on the [Meteor Design System](https://shopware.design/).

31 lines (26 loc) 723 B
import type { StoryObj } from "@storybook/vue3"; import MtChart from "./mt-chart.vue"; import { type SlottedMeta } from "@/_internal/story-helper"; export type MtChartMeta = SlottedMeta<typeof MtChart, "default" | "click">; export default { title: "Components/mt-chart", component: MtChart, args: { type: "area", series: [ { name: "Sample Data", data: [30, 55, 65, 60, 45, 40, 55, 80], }, ], width: "100%", height: 300, }, render: (args) => ({ components: { MtChart }, setup: () => ({ args }), template: `<mt-chart v-bind="args" />`, }), } as MtChartMeta; export type MtChartStory = StoryObj<MtChartMeta>; export const Default: MtChartStory = {};