import { Canvas, Meta, ArgTypes } from '@storybook/blocks'; import { ThemeProvider } from 'styled-components'; import PopOver from './'; import PopOverHeader from './PopOverHeader'; import PopOverItem from './PopOverItem'; import PopOverSubMenu from './PopOverSubMenu'; import { lightTheme } from '../../../theme/'; import PrimaryButton from '../Button/PrimaryButton'; import * as PopOverStories from './PopOver.stories.tsx'; # PopOver The PopOver component displays a pop-up with a list of clickable options, it can contain buttons and links. You can define the placement of the PopOver to the button, available options are `top-start`, `top-end`, `bottom-start`, `bottom-end`, `right-start`, `right-end`, `left-start`, and `left-end`. ## Importing ```javascript import { PopOver, PopOverHeader, PopOverSeparator, PopOverItem, PopOverSubMenu, } from 'amazon-chime-sdk-component-library-react'; ``` ## Example ( )} > Visit amazon.com} /> {}} children={Option 1} /> {}} children={Option 2} /> {}} children={Option 3} />
{/* Just to force some more space in the preview window */} ```jsx ( )} > Visit amazon.com} /> {}} children={Option 1} /> {}} children={Option 2} /> {}} children={Option 3} /> ``` ## Props ### PopOver Props ### PopOverHeader Props ### PopOverItem Props ### PopOverSubMenu Props