{"meta":"<h2 id=\"User Guide\">User Guide <a class=\"header-anchor scroll-count-item\" href=\"#User Guide\" data-scroll-id=\"User Guide\">#</a></h2>\n<p>MenuButton is a button which, when clicked or pressed, will show a context menu.</p>\n","api":"<h2 id=\"API\">API <a class=\"header-anchor scroll-count-item\" href=\"#API\" data-scroll-id=\"API\">#</a></h2>\n<h3 id=\"Menu Button\">MenuButton <a class=\"header-anchor scroll-count-item\" href=\"#Menu Button\" data-scroll-id=\"Menu Button\">#</a></h3>\n<table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Description</th>\n<th>Type</th>\n<th>Default Value</th>\n<th>Required</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>label</td>\n<td>The text in button</td>\n<td>React.ReactNode</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>autoWidth</td>\n<td>If popup width equals to button width</td>\n<td>boolean</td>\n<td>true</td>\n<td></td>\n</tr>\n<tr>\n<td>popupTriggerType</td>\n<td>Trigger type of popup</td>\n<td>&apos;click&apos; | &apos;hover&apos;</td>\n<td>&apos;click&apos;</td>\n<td></td>\n</tr>\n<tr>\n<td>popupContainer</td>\n<td>Container of popup</td>\n<td>string | HTMLElement | ((target: HTMLElement) =&gt; HTMLElement)</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>visible</td>\n<td>Visible state of popup</td>\n<td>boolean</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>defaultVisible</td>\n<td>Default visible state of popup</td>\n<td>boolean</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>onVisibleChange</td>\n<td>Callback when visible state changes</td>\n<td>(visible: boolean, type: string) =&gt; void</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>popupStyle</td>\n<td>Custom style of popup</td>\n<td>React.CSSProperties</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>popupClassName</td>\n<td>Custom className of popup</td>\n<td>string</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>popupProps</td>\n<td>Props of popup</td>\n<td>PopupProps</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>followTrigger</td>\n<td>Follow Trigger or not</td>\n<td>boolean</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>defaultSelectedKeys</td>\n<td>Default selected items, as Menu</td>\n<td>Array&lt;string&gt;</td>\n<td>[]</td>\n<td></td>\n</tr>\n<tr>\n<td>selectedKeys</td>\n<td>Selected items, as Menu</td>\n<td>string | Array&lt;string&gt;</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>selectMode</td>\n<td>Select mode of menu, see Menu</td>\n<td>&apos;single&apos; | &apos;multiple&apos;</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>onItemClick</td>\n<td>Callback when click the menu item, see Menu<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>key</em>: Key of clicked menu item<br><em>item</em>: Clicked menu item instance<br><em>event</em>: Event object</td>\n<td>MenuProps[&apos;onItemClick&apos;]</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>onSelect</td>\n<td>Callback when select the menu, see Menu<br><br><strong>signature</strong>:<br><strong>params</strong>:<br><em>selectedKeys</em>: Keys of selected menu items<br><em>item</em>: Current operation menu item<br><em>extra</em>: Extra params</td>\n<td>MenuProps[&apos;onSelect&apos;]</td>\n<td>-</td>\n<td></td>\n</tr>\n<tr>\n<td>menuProps</td>\n<td>Props of menu</td>\n<td>MenuProps</td>\n<td>-</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n"}