import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { BUTTON_SIZES, Button } from '..'; import { PopoverHeader } from './popover-header'; import README from './README.mdx'; export default { title: 'Components/ComponentLibrary/PopoverHeader', component: PopoverHeader, parameters: { docs: { page: README, }, }, argTypes: { children: { control: 'text' }, className: { control: 'text' }, onBack: { action: 'onBack' }, onClose: { action: 'onClose' }, }, args: { children: 'PopoverHeader', }, } as ComponentMeta; const Template: ComponentStory = (args) => { return PopoverHeader; }; export const DefaultStory = Template.bind({}); DefaultStory.storyName = 'Default'; export const Children: ComponentStory = (args) => ( ); Children.args = { children: 'PopoverHeader Title', }; export const OnBack: ComponentStory = (args) => ( OnBack Demo ); export const OnClose: ComponentStory = (args) => ( OnClose Demo ); export const StartAccessory: ComponentStory = (args) => ( Demo} {...args} > StartAccessory ); export const EndAccessory: ComponentStory = (args) => ( Demo} {...args} > EndAccessory );