import type { Meta, StoryObj } from '@storybook/vue3' import { UTooltip, UIcon } from '../components' import { UTooltipProps } from '../components/UTooltip/UTooltip' import { ExtractPropTypes } from 'vue' const meta: Meta = { title: 'Example/Tooltip', component: UTooltip, tags: ['autodocs'], argTypes: { theme: { control: 'select', options: ['dark', 'light'] }, always: { control: 'boolean', defaultValue: false }, position: { control: 'select', options: [ 'none top', 'none bottom', 'bottom', 'bottom-start', 'bottom-end', 'top', 'top-start', 'top-end', 'left', 'right', ], }, }, } export default meta type Story = StoryObj export const BaseTooltip: Story = { render: (args: ExtractPropTypes) => ({ components: { UTooltip, UIcon }, setup() { return { args } }, template: `
`, }), args: { theme: 'dark', always: true, } as UTooltipProps, }