JSPM

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

ReactJS multilevel dropdown component

Package Exports

  • react-multilevel-dropdown
  • react-multilevel-dropdown/index.js

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

📒 STORYBOOK

npm NPM NPM

React multilevel dropdown

Install

npm install react-multilevel-dropdown

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

Development / testing

npm run storybook

Usage / Example

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.Submenu>
  </Dropdown.Item>
</Dropdown>

Docs

Props

NAME TYPE DEFAULT VALUE
children ReactNode ReactNode[]
title ReactNode ReactNode[]
isDisabled boolean false
position "left", "right", "top-right", "top-left" left
buttonVariant "primary", "secondary", "tertiary", "special", "special-success", "dashed" secondary
isActive boolean false
openOnHover boolean false
wrapperClassName string null
buttonClassName string null
menuClassName string null
onClick (x?: any) => any () => null

Item

NAME TYPE DEFAULT VALUE
children ReactNode ReactNode[]
onClick (x?: any) => any () => null
isActive boolean false
className string null
isDisabled boolean false
NAME TYPE DEFAULT VALUE
children ReactNode ReactNode[]
position "left", "right", "bottom", "left-top", "right-top" left
className string null