import type { Meta, StoryObj } from '@storybook/vue3-vite' import { ref } from 'vue' import { Dialog as NychDialog, Button as NychButton } from '@nychthemeron/library' const meta = { title: 'Components/Dialog', component: NychDialog, parameters: { layout: 'centered', }, tags: ['autodocs'], } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: () => ({ components: { NychDialog, NychButton }, setup() { const visible = ref(false) return { visible } }, template: `

Seekers travelled from across the Aegean to hear the Pythia speak the will of Apollo in riddling verse. Approach, and ask your question.

`, }), } // Rendered open by default so the dialog surface is visible in docs/snapshots. export const Open: Story = { render: () => ({ components: { NychDialog, NychButton }, setup() { const visible = ref(true) return { visible } }, template: `

Charon ferries the souls of the dead across the river that divides the world of the living from the world of the dead. One obol is required.

`, }), } export const WithoutFooter: Story = { render: () => ({ components: { NychDialog }, setup() { const visible = ref(true) return { visible } }, template: `

A crow has settled upon the western gate. Interpret it as you will.

`, }), }