import type { Meta, StoryObj } from '@storybook/vue3'; import { ref } from 'vue'; import Modal from './Modal.vue'; import { PrimaryButton } from '~/components'; type Story = StoryObj; const meta: Meta = { title: 'Application/Modal', component: Modal, parameters: { layout: 'centered', }, tags: ['modal'], argTypes: { visible: { table: { disable: true } }, default: { control: false, }, }, args: { title: 'Edit profile', confirmLabel: 'Save', cancelLabel: 'Cancel', cancelOnly: false, confirmIcon: 'i-youcan-check-circle', }, }; export const Default: Story = { render: args => ({ components: { Modal, PrimaryButton }, setup() { const showModal = ref(false); return { args, showModal }; }, template: `

The quick brown fox jumps over the lazy dog.

Open Modal `, }), }; export default meta;