import type { Meta, StoryObj } from '@storybook/react-vite'; import { Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, } from './popover'; import { Button } from '../button/button'; import { Input } from '../input/input'; import { Label } from '../label/label'; const meta = { title: 'Components/Popover', component: Popover, parameters: { layout: 'centered', docs: { description: { component: 'Non-modal floating panel anchored to a trigger. It does not trap focus or block the page, which makes it right for secondary controls and inline detail. Use DropdownMenu when the content is a list of commands.', }, }, }, tags: ['autodocs'], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render: () => ( Dimensions Applied to the selected layer.
), }; export const Sides: Story = { render: () => (
{(['top', 'right', 'bottom', 'left'] as const).map((side) => ( Anchored to the {side}. ))}
), };