import type { Meta, StoryObj } from '@storybook/react'; import { Tooltip, TooltipContent, TooltipTrigger, TooltipProvider } from './tooltip'; import { Button } from '../button'; import { Plus, Settings } from 'lucide-react'; import React from 'react'; const meta: Meta = { title: 'UI/Tooltip', component: Tooltip, render: args => , argTypes: { delayDuration: { control: { type: 'number', min: 0, max: 1000, step: 100 }, description: 'The duration from when the mouse hovers over the trigger until the tooltip opens.', defaultValue: 700, }, }, decorators: [ Story => (
), ], }; export default meta; type Story = StoryObj; export const Default: Story = { render: args => (

Add to library

), }; export const IconOnly: Story = { render: () => (

Project Settings

), }; export const Position: Story = { render: () => (

Tooltip on the right

Tooltip on the bottom

), };