UNPKG

@mozaic-ds/vue

Version:

Mozaic-Vue is the Vue.js implementation of ADEO Design system

36 lines (33 loc) 907 B
import type { Meta, StoryObj } from '@storybook/vue3-vite'; import MOverlay from './MOverlay.vue'; const meta: Meta<typeof MOverlay> = { title: 'Overlay/Overlay', component: MOverlay, parameters: { layout: 'fullscreen', docs: { story: { height: '400px' }, description: { component: 'An overlay component is a UI element that appears above the main content to display additional information or interactions, often blocking or dimming the background.', }, }, }, args: { isVisible: true, }, render: (args) => ({ components: { MOverlay }, setup() { return { args }; }, template: ` <MOverlay v-bind="args"> <template v-if="${'default' in args}" v-slot>${args.default}</template> </MOverlay> `, }), }; export default meta; type Story = StoryObj<typeof MOverlay>; export const Default: Story = {};