import type { Meta, StoryObj } from '@storybook/react-vite'; import { type ComponentMatrixCellProps, Story } from './_internal/Story'; import { Button, type ButtonProps } from './Button'; import { Popover } from './Popover'; const meta = { component: Popover, parameters: { layout: 'fullscreen', }, title: 'components/Popover', } satisfies Meta; export default meta; type StoryDefinition = StoryObj; const ALIGN_ROWS = [ { key: 'start', label: 'Start align' }, { key: 'center', label: 'Center align' }, { key: 'end', label: 'End align' }, ]; const TRIGGER_COLUMNS: { key: NonNullable; label: string; }[] = [ { key: 'default', label: 'Default trigger' }, { key: 'outline', label: 'Outline trigger' }, { key: 'ghost', label: 'Ghost trigger' }, ]; function PopoverMatrixCell({ column, row }: ComponentMatrixCellProps) { return ( {row.label} Contextual content keeps the same spacing, radius, and border treatment across trigger styles.
); } export const All: StoryDefinition = { render: () => ( ), };