import type { Meta, StoryObj } from '@storybook/react'; import { Plus } from 'lucide-react'; import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, } from '@konobangu/design-system/components/ui/tooltip'; /** * A popup that displays information related to an element when the element * receives keyboard focus or the mouse hovers over it. */ const meta: Meta = { title: 'ui/Tooltip', component: TooltipContent, tags: ['autodocs'], argTypes: { side: { options: ['top', 'bottom', 'left', 'right'], control: { type: 'radio', }, }, children: { control: 'text', }, }, args: { side: 'top', children: 'Add to library', }, parameters: { layout: 'centered', }, render: (args) => ( Add ), } satisfies Meta; export default meta; type Story = StoryObj; /** * The default form of the tooltip. */ export const Default: Story = {}; /** * Use the `bottom` side to display the tooltip below the element. */ export const Bottom: Story = { args: { side: 'bottom', }, }; /** * Use the `left` side to display the tooltip to the left of the element. */ export const Left: Story = { args: { side: 'left', }, }; /** * Use the `right` side to display the tooltip to the right of the element. */ export const Right: Story = { args: { side: 'right', }, };