Skip to content

Commit aca5a85

Browse files
committed
feat(CommandPalette): add new component * 8
1 parent 031a11f commit aca5a85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/actions/CommandMenu/CommandMenu.stories.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ EmptyState.args = {
555555
};
556556

557557
export const MultipleSelection: StoryFn<CubeCommandMenuProps<any>> = (args) => {
558-
const [selectedKeys, setSelectedKeys] = useState<string[]>([]);
558+
const [selectedKeys, setSelectedKeys] = useState<string[]>(['copy', 'cut']);
559559

560560
return (
561561
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
@@ -565,6 +565,7 @@ export const MultipleSelection: StoryFn<CubeCommandMenuProps<any>> = (args) => {
565565
<CommandMenu
566566
{...args}
567567
selectionMode="multiple"
568+
selectionIcon="checkbox"
568569
selectedKeys={selectedKeys}
569570
onSelectionChange={setSelectedKeys}
570571
>

0 commit comments

Comments
 (0)