We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 031a11f commit aca5a85Copy full SHA for aca5a85
src/components/actions/CommandMenu/CommandMenu.stories.tsx
@@ -555,7 +555,7 @@ EmptyState.args = {
555
};
556
557
export const MultipleSelection: StoryFn<CubeCommandMenuProps<any>> = (args) => {
558
- const [selectedKeys, setSelectedKeys] = useState<string[]>([]);
+ const [selectedKeys, setSelectedKeys] = useState<string[]>(['copy', 'cut']);
559
560
return (
561
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
@@ -565,6 +565,7 @@ export const MultipleSelection: StoryFn<CubeCommandMenuProps<any>> = (args) => {
565
<CommandMenu
566
{...args}
567
selectionMode="multiple"
568
+ selectionIcon="checkbox"
569
selectedKeys={selectedKeys}
570
onSelectionChange={setSelectedKeys}
571
>
0 commit comments