mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-29 08:56:43 -06:00
34 lines
757 B
TypeScript
34 lines
757 B
TypeScript
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
/* eslint-disable import/no-default-export */
|
|
import { Meta, StoryObj } from '@storybook/vue3';
|
|
import WidgetInstanceInfo from './WidgetInstanceInfo.vue';
|
|
const meta = {
|
|
title: 'widgets/WidgetInstanceInfo',
|
|
component: WidgetInstanceInfo,
|
|
} satisfies Meta<typeof WidgetInstanceInfo>;
|
|
export const Default = {
|
|
render(args) {
|
|
return {
|
|
components: {
|
|
WidgetInstanceInfo,
|
|
},
|
|
setup() {
|
|
return {
|
|
args,
|
|
};
|
|
},
|
|
computed: {
|
|
props() {
|
|
return {
|
|
...args,
|
|
};
|
|
},
|
|
},
|
|
template: '<WidgetInstanceInfo v-bind="props" />',
|
|
};
|
|
},
|
|
parameters: {
|
|
layout: 'centered',
|
|
},
|
|
} satisfies StoryObj<typeof WidgetInstanceInfo>;
|
|
export default meta;
|