import type { Meta, StoryObj } from '@storybook/vue3'; import { ref } from 'vue'; import { Alert } from '~/components'; type Story = StoryObj; const meta: Meta = { title: 'Application/Alert', component: Alert, tags: ['info', 'alert'], argTypes: { type: { control: 'select', options: ['success', 'warning', 'info', 'error'], }, title: { control: false }, description: { control: false }, }, args: { type: 'warning', closeAfterDuration: 5000, canClose: true, }, }; export const Default: Story = { render: args => ({ components: { Alert }, setup() { const show = ref(true); return { args, show }; }, template: ` `, }), }; export default meta;