summaryrefslogtreecommitdiff
path: root/packages/frontend/src/widgets/WidgetUserList.stories.ts
blob: 469992c3c48bf0629947bafa5e5d93c7a888bb57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* eslint-disable @typescript-eslint/explicit-function-return-type */
/* eslint-disable import/no-default-export */
import { Meta, StoryObj } from '@storybook/vue3';
import WidgetUserList from './WidgetUserList.vue';
const meta = {
	title: 'widgets/WidgetUserList',
	component: WidgetUserList,
} satisfies Meta<typeof WidgetUserList>;
export const Default = {
	render(args) {
		return {
			components: {
				WidgetUserList,
			},
			setup() {
				return {
					args,
				};
			},
			computed: {
				props() {
					return {
						...args,
					};
				},
			},
			template: '<WidgetUserList v-bind="props" />',
		};
	},
	parameters: {
		layout: 'centered',
	},
} satisfies StoryObj<typeof WidgetUserList>;
export default meta;