import type { Meta, StoryObj } from '@storybook/vue3-vite' import VvAlert from '@/components/VvAlert/VvAlert.vue' import { argTypes, defaultArgs } from './Alert.settings' import { defaultTest } from './Alert.test' const meta: Meta = { title: 'Components/Alert', component: VvAlert, args: defaultArgs, argTypes, tags: ['autodocs'], } export default meta export type Story = StoryObj export const Default: Story = { args: defaultArgs, play: defaultTest, render: args => ({ components: { VvAlert }, setup() { return { args } }, template: /* html */ ` `, }), } export const Dismissable: Story = { ...Default, args: { ...defaultArgs, dismissable: true, }, } export const AutoClose: Story = { ...Default, args: { ...defaultArgs, autoClose: 8000, }, } export const Icon: Story = { ...Default, args: { ...defaultArgs, icon: 'warning', }, }