UNPKG

@mozaic-ds/vue

Version:

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

51 lines (47 loc) 1.57 kB
import type { Meta, StoryObj } from '@storybook/vue3-vite'; import MTileExpandable from './MTileExpandable.vue'; const meta: Meta<typeof MTileExpandable> = { title: 'Content/Tile/Expandable', component: MTileExpandable, parameters: { docs: { description: { component: 'A tile is a container component used to group related content and actions within a structured layout. It provides a clickable or static area that can display text, images, icons, or interactive elements. Tiles are commonly used to present key information, navigate to detailed views, or trigger specific actions in dashboards, cards, and grid-based layouts. Their adaptable design allows them to accommodate various content types while maintaining a consistent and organized interface.', }, }, }, args: { appearance: 'primary', label: 'See more', trigger: 'icon', bordered: true, default: ` <div class="placeholder-slot"> Click on the expand button to see details. </div> `, details: ` <div class="placeholder-slot"> Insert a form element here to replace this slot. </div> `, }, render: (args) => ({ components: { MTileExpandable }, setup() { return { args }; }, template: ` <MTileExpandable v-bind="args"> ${args.default} <template #details> ${args.details} </template> </MTileExpandable> `, }), }; export default meta; type Story = StoryObj<typeof MTileExpandable>; export const Default: Story = {};