import type { Meta, StoryObj } from '@storybook/react' import { SvgInformationCircle } from '@chainlink/blocks-icons' import { ResponsiveTooltip, ResponsiveTooltipTrigger, ResponsiveTooltipContent, } from './ResponsiveTooltip' const meta = { title: 'Blocks/Tooltip/ResponsiveTooltip', component: ResponsiveTooltip, subcomponents: { ResponsiveTooltipTrigger, ResponsiveTooltipContent, }, args: { defaultOpen: false, }, argTypes: { defaultOpen: { control: 'boolean', description: 'Opens the tooltip/popover by default in uncontrolled usage.', table: { type: { summary: 'boolean' }, defaultValue: { summary: 'false' }, }, }, open: { table: { disable: true } }, onOpenChange: { table: { disable: true } }, }, } satisfies Meta export default meta type Story = StoryObj export const Default: Story = { render: (args) => (
Fees cover the gas costs of completing transactions on the destination chain and the fees paid to CCIP service providers.
), } export const AllSides: Story = { render: (_args) => (
Tooltip on Left Tooltip on Top Tooltip on Bottom Tooltip on Right
), } export const AllAlignments: Story = { render: (_args) => (
Align End Align Center Align Start
), } export const NoArrow: Story = { render: (_args) => (
Tooltip without Arrow
), parameters: { docs: { description: { story: 'Set hideArrow when the tooltip content should appear as a plain floating panel.', }, }, }, }