import { ComponentStory, ComponentMeta } from '@storybook/react'; import React from 'react'; import color from '../../styles/colors'; import colors from '../../styles/colors'; import PopoverDropdown from './PopoverDropdown'; import PopoverElement from '../PopoverElement/PopoverElement'; import { Icon } from '../Icon'; import { iconTypes } from '../Icon/collection'; export default { title: '5.Popup/Popover Dropdown', component: PopoverDropdown, subcomponents: { PopoverElement }, argTypes: { onClick: { action: 'clicked' } }, } as ComponentMeta; const Template: ComponentStory = (args) => (
); export const PopoverSelection = Template.bind({}); PopoverSelection.args = { position: 'bottom', children: [ alert('Testnet Server')} />, alert('Mainnet Server')} />, alert('Local Devchain Server')} />, ], parent: ( ), }; export const PopoverCustomPosition = Template.bind({}); PopoverCustomPosition.args = { position: 'bottom', moveBody: -80, move: -80, children: [ alert('Testnet Server')} />, alert('Mainnet Server')} />, alert('Local Devchain Server')} />, ], parent: ( ), }; export const PopoverSelectionUser = Template.bind({}); PopoverSelectionUser.args = { position: 'bottom', children: [ alert('Account Settings')} />, alert('Support Page')} />, alert('Logout')} />, ], parent: ( ), };