import type { Meta, StoryObj } from '@storybook/react'; import { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuPortal, } from './dropdown-menu'; import { Button } from '../button'; import { Cloud, CreditCard, Github, Keyboard, LifeBuoy, LogOut, Mail, MessageSquare, Plus, PlusCircle, Settings, User, UserPlus, Users, MoreHorizontal, } from 'lucide-react'; import React from 'react'; const meta: Meta = { title: 'UI/DropdownMenu', component: DropdownMenu, render: args => , argTypes: { open: { control: 'boolean', description: 'Whether the dropdown menu is open.', }, modal: { control: 'boolean', description: 'Whether the dropdown menu should be modal.', defaultValue: true, }, }, }; export default meta; type Story = StoryObj; export const Default: Story = { render: args => ( My Account Profile ⇧⌘P Billing ⌘B Settings ⌘S Team Invite users Email Message More... GitHub Support Log out ⇧⌘Q ), }; export const TableActions: Story = { render: () => ( Actions navigator.clipboard.writeText('payment-123')}> Copy payment ID View customer View payment details Delete payment ), };