Dropdown

Dropdown: ComponentType<DropdownProps> = ...

A UI component that opens a dropdown menu.

Please use this component together with DropdownButton, DropdownMenu and DropdownItem.

Example:

           
1
2
3
4
5
6
7
8
9
10
11
import { Dropdown, DropdownButton, DropdownMenu, DropdownItem } from 'jimu-ui';
<Dropdown>
 <DropdownButton>Dropdown</DropdownButton>
 <DropdownMenu>
   <DropdownItem header>Header</DropdownItem>
   <DropdownItem disabled>Action</DropdownItem>
   <DropdownItem>Another Action</DropdownItem>
   <DropdownItem divider/>
   <DropdownItem>Another Action</DropdownItem>
 </DropdownMenu>
</Dropdown>

Props:

See DropdownProps for more details.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.