import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import Tooltip from './Tooltip'; import { Icon } from '../Icon'; import { iconTypes } from '../Icon/collection'; import color from '../../styles/colors'; export default { title: '5.Popup/Tooltip', component: Tooltip, } as ComponentMeta; const Template: ComponentStory = (args) => (
); const TooltipText = () => ( This is tooltip text ); export const Top = Template.bind({}); Top.args = { position: 'top', content: , children: [ , ], }; export const Bottom = Template.bind({}); Bottom.args = { position: 'bottom', content: , children: [ , ], }; export const Left = Template.bind({}); Left.args = { position: 'left', content: , children: [ , ], }; export const Right = Template.bind({}); Right.args = { position: 'right', content: , children: [ , ], };