1.1.9 • Published 4 years ago

@nteract/dropdown-menu v1.1.9

Weekly downloads
1,734
License
BSD-3-Clause
Repository
github
Last release
4 years ago

@nteract/dropdown-menu

This package contains a React component for rendering the drop-down element on a single cell. This drop-down provides users with the ability to hide and show cells, convert cells between different types, and more.

Installation

$ yarn add @nteract/dropdown-menu
$ npm install --save @nteract/dropdown-menu

Usage

The example below showcases how we can use the components within this package to create a drop-down menu with actions specific to code cells.

import {
  DropdownMenu,
  DropdownTrigger,
  DropdownContent
} from "@nteract/dropdown-menu";

export default () => {
  return (
    <DropdownMenu>
      <DropdownTrigger>
        <button title="show additional actions">
          <span className="octicon toggle-menu">
            <ChevronDownOcticon />
          </span>
        </button>
      </DropdownTrigger>
      {type === "code" ? (
        <DropdownContent>
          <li
            onClick={this.props.clearOutputs}
            className="clearOutput"
            role="option"
            aria-selected="false"
            tabIndex="0"
          >
            <a>Clear Cell Output</a>
          </li>
          <li
            onClick={this.props.toggleCellInputVisibility}
            className="inputVisibility"
            role="option"
            aria-selected="false"
            tabIndex="0"
          >
            <a>Toggle Input Visibility</a>
          </li>
        </DropdownContent>
      ) : null}
    </DropdownMenu>
  );
};

Documentation

We're working on adding more documentation for this component. Stay tuned by watching this repository!

Support

If you experience an issue while using this package or have a feature request, please file an issue on the issue board and add the pkg:dropdown-menu label.

License

BSD-3-Clause

1.1.10-alpha.0

4 years ago

1.1.9

4 years ago

1.1.9-alpha.0

4 years ago

1.1.8-alpha.0

4 years ago

1.1.7

4 years ago

1.1.7-alpha.0

4 years ago

1.1.6-alpha.0

4 years ago

1.1.5-alpha.0

4 years ago

1.1.4

4 years ago

1.1.4-alpha.0

4 years ago

1.1.3-alpha.0

4 years ago

1.1.2-alpha.0

4 years ago

1.1.1

4 years ago

1.1.1-alpha.0

4 years ago

1.1.0-alpha.0

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.5.11-alpha.0

5 years ago

0.5.10-alpha.0

5 years ago

0.5.9-alpha.0

5 years ago

0.5.7

6 years ago

0.5.6

6 years ago

0.5.5

6 years ago

0.5.4

6 years ago

0.5.3

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.2

6 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago