import type { Meta, StoryObj } from '@storybook/vue3-vite'; import Button from '@/components/button/button.vue'; import Tooltip from '../tooltip.vue'; const meta: Meta = { title: 'Components/Tooltip', component: Tooltip, }; export default meta; type Story = StoryObj; export const Default: Story = { args: { title: 'Tooltip content.', }, render: args => ({ components: { Tooltip, Button }, setup() { return { args }; }, template: `
`, }), }; export const Dark: Story = { args: { variant: 'dark', title: 'Tooltip content.', }, render: args => ({ components: { Tooltip, Button }, setup() { return { args }; }, template: `
`, }), }; export const Size: Story = { args: { title: 'Tooltip content.', disableHoverableContent: true, }, render: args => ({ components: { Tooltip, Button }, setup() { return { args }; }, template: `
`, }), }; export const Position: Story = { args: { title: 'Tooltip content.', disableHoverableContent: true, }, render: args => ({ components: { Tooltip, Button }, setup() { return { args }; }, template: `
`, }), }; export const Description: Story = { args: { size: 'md', dismissible: true, icon: 'i-celeste-global-line', title: 'Content Title', description: 'Insert tooltip description here. It would look much better as three lines of text.', }, render: args => ({ components: { Tooltip, Button }, setup() { return { args }; }, template: `
`, }), };