MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Example

Function Example

starters/docs/stories/CommandPalette.stories.tsx:18–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16type Story = StoryFn<typeof CommandPalette>;
17
18export const Example: Story = args => (
19 <DialogTrigger>
20 <Button>
21 Open Command Palette <kbd>⌘ J</kbd>
22 </Button>
23 <CommandPalette {...args}>
24 <MenuItem>Create new file...</MenuItem>
25 <MenuItem>Create new folder...</MenuItem>
26 <MenuItem>Assign to...</MenuItem>
27 <MenuItem>Assign to me</MenuItem>
28 <MenuItem>Change status...</MenuItem>
29 <MenuItem>Change priority...</MenuItem>
30 <MenuItem>Add label...</MenuItem>
31 <MenuItem>Remove label...</MenuItem>
32 </CommandPalette>
33 </DialogTrigger>
34);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected