import * as React from "react"; import { StoryFn, Meta } from "@storybook/react"; import { Popover } from "../"; import { PrimaryDropdownButton } from "../button"; import { PopoverProps } from "./components/PopoverBox"; import { directionsValues, directionsValuesLabels } from "../storybookHelpers/controlConstants"; export default { title: "Overlays/Popover", decorators: [Story =>
{Story()}
], component: Popover, argTypes: { preferredDirections: { options: directionsValues, mapping: directionsValuesLabels }, trigger: { control: { disable: true } }, ariaLabel: { control: { disable: true } }, id: { control: { disable: true } }, "data-cy": { control: { disable: true } } } } as Meta; const Template: StoryFn = args => ( Open Popover} {...args} >
Dropdown Content
); export const Default = { render: Template }; export const InitialIsOpen = { render: Template, args: { initialIsOpen: true } }; export const WithMaxHeight = { render: args => ( open popover} {...args} >
dropdown content

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

) }; export const WithMaxWidth = { render: args => ( open popover} {...args} >
dropdown content

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.

) };