DropdownItem

DropdownItem: ComponentType<Pick<DropdownItemPropsstring | number> & RefAttributes<HTMLElement> & > = ...

A child element in a DropdownMenu component.

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

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 DropdownItemProps 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.