Skip to content

Commit

Permalink
restore custom icon control in storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed May 9, 2023
1 parent 5d317f9 commit 9b920e0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion packages/components/src/dropdown-menu/stories/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ import { MenuGroup, MenuItem } from '../..';
/**
* WordPress dependencies
*/
import { menu, arrowUp, arrowDown, more, trash } from '@wordpress/icons';
import {
menu,
arrowUp,
arrowDown,
chevronDown,
more,
trash,
} from '@wordpress/icons';

const meta: ComponentMeta< typeof DropdownMenu > = {
title: 'Components/DropdownMenu',
Expand All @@ -20,6 +27,13 @@ const meta: ComponentMeta< typeof DropdownMenu > = {
controls: { expanded: true },
docs: { source: { state: 'open' } },
},
argTypes: {
icon: {
options: [ 'menu', 'chevronDown', 'more' ],
mapping: { menu, chevronDown, more },
control: { type: 'select' },
},
},
};
export default meta;

Expand Down

0 comments on commit 9b920e0

Please sign in to comment.