JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2766
  • Score
    100M100P100Q124400F
  • License MIT

ReactJS multilevel dropdown component

Package Exports

  • react-multilevel-dropdown

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-multilevel-dropdown) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Kontentino - Making social media a piece of cake

react-multilevel-dropdown by Kontentino

ReactJS multilevel dropdown component

npm NPM NPM

React multilevel dropdown

Install

npm install react-multilevel-dropdown

NPM: npmjs.com/package/react-multilevel-dropdown

Usage

import Dropdown from 'react-multilevel-dropdown';

...

<Dropdown
  title='Dropdown title'
>
  <Dropdown.Item
    onClick={() => doSomething()}
  >
    Item 1
  </Dropdown.Item>
  <Dropdown.Item>
    Item 2
    <Dropdown.Submenu>
      <Dropdown.Item>
        Subitem 1
      </Dropdown.Item>
      <Dropdown.Item>
        Subitem 2
      </Dropdown.Item>
    </Dropdown.Submenu>
  </Dropdown.Item>
  <Dropdown.Item>
    Item 3
  </Dropdown.Item>
</Dropdown>

Docs

Props

NAME TYPE DEFAULT VALUE
children node null
title String null
isDisabled Boolean false
position String - 'left' or 'right' 'left'
wrapperClassName String null
buttonClassName String null
menuClassName String null

Item

NAME TYPE DEFAULT VALUE
children node null
onClick Function () => null
isActive Boolean false
className String null
NAME TYPE DEFAULT VALUE
children node null
position String - 'left' or 'right' 'left'
className String null