import type { Meta, StoryObj } from "@storybook/react-vite"; import { File, Folder, Settings, User } from "lucide-react"; import { Command } from "./command"; const meta = { title: "Components/Command", component: Command, subcomponents: { CommandInput: Command.Input, CommandList: Command.List, CommandItem: Command.Item, CommandEmpty: Command.Empty, }, parameters: { layout: "centered", }, tags: ["autodocs"], } satisfies Meta; export default meta; type Story = StoryObj; export const Default: Story = { render() { return ( Item 1 Item 2 Item 3 No results found. ); }, }; export const WithIcons: Story = { render() { return ( Documents Downloads README.md package.json No files or folders found. ); }, }; export const WithCategories: Story = { render() { return (
User
Profile Settings
Files
Open Folder New File
No commands found.
); }, }; export const EmptyState: Story = { render() { return ( {/* No items - will show empty state */}

No results found

Try searching for something else

); }, }; export const LongList: Story = { render() { return ( {Array.from({ length: 20 }, (_, i) => ( Item {i + 1} ))} No results found. ); }, }; export const WithoutSearch: Story = { render() { return ( Profile Settings Files ); }, }; export const CustomStyling: Story = { render() { return ( Custom Item 1 Custom Item 2 Custom Item 3 No matching items found. ); }, }; export const DisabledItems: Story = { render() { return ( Active Item 1 Disabled Item Active Item 2 No results found. ); }, };