Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ak-dropdown-menu

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ak-dropdown-menu

ak-dropdown-menu React component

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
93
decreased by-71.21%
Maintainers
1
Weekly downloads
 
Created
Source

AtlasKit component registry Commitizen friendly semantic-release Report an issue Ask in our forum

Dropdown menu

This is a Dropdown menu component which creates a menu with groups and items within groups.

Try it out

See more detailed documentation and code examples in the live demo of the component.

Installation

npm install ak-dropdown-menu --save

Using the component

See examples of usage and detailed documentation in the live demo of the component.

DropdownMenu

Kind: global class

new DropdownMenu()

This is a basic building block of a dropdown's list.

DropdownMenu.position

Position of the menu. See the documentation of ak-layer for more details.

Kind: static property of DropdownMenu
Default: bottom left

DropdownMenu.triggerType

Types of the menu's built-in trigger. Available types: 'default', 'button'.

Kind: static property of DropdownMenu
Default: default

DropdownMenu.items

List of menu items. Should be an array of groups (see the documentation for ak-droplist-group for available props). Every group should contain array of items (see the documentation for ak-droplist-item for available props).

Kind: static property of DropdownMenu
JS Example

[
   {
       heading: 'Title of a group',
       items: [
         { content: 'First item in the group' },
         { content: 'Second item in the group' }
       ]
   }
]

DropdownMenu.defaultOpen

Whether the dropdown should be open by default

Kind: static property of DropdownMenu
Default: []

DropdownMenu.onItemActivated

Handler function to be called when the item is activated.

Kind: static property of DropdownMenu

DropdownMenu.onOpenChange

Handler function to be called when the menu is opened/closed.

Kind: static property of DropdownMenu

Support and feedback

We're here to help!

Let us know what you think of our components and docs, your feedback is really important for us.

Community support

Ask a question in our forum.

Check if someone has already asked the same question before.

Create a support ticket

Are you in trouble? Let us know!

Keywords

FAQs

Package last updated on 14 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc