SubMenu
Full-width popper-style drop-down menu components
Example
import React from 'react';
import SubMenu, { SubMenuItem } from 'q3-ui/lib/SubMenu';
const CustomDropDownOption = () => (
<p>I'll show up on click!</p>
);
const SampleSubMenu = () => (
<SubMenu>
<SubMenuItem label="DropDown" renderer={CustomDropDownOption} />
</SubMenu>
);
API
Prop
Description
Type
label
Populate's the dropdown button's text
string
renderer
Custom rendering function for inside the dropdown popper
function
Last updated
Was this helpful?