Socket
Book a DemoInstallSign in
Socket

@bdt-component-library/drop-down-menu

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bdt-component-library/drop-down-menu

DropDownMenu component

latest
Source
npmnpm
Version
0.5.1
Version published
Maintainers
2
Created
Source

DropDownMenu Component

About

This is a component published as its own package from our component library monorepo: https://github.com/BenefitsDataTrust/ui-components. Setup instructions, as well as higher-level goals and concerns can be found from the main project README.

Description

Handles display of drop down menus.

API

proptyperequireddefaultexplanation
classNamestringnon/aAdds an optional classname to the component
behaviorenum("hover", "click")no"hover"Determines if menu is opened via button or link
textstringyesnoAdds text for menu item
descriptionstringnonoAdds id to menu list
idstringnonoAdds id to menu open link if using link, and aria-labelledby to menu list
parentUrlstringnonoAdds href if using menu open link
sizeenum("default", "compact")no"default"Determines the size variant
itemsarray("any")no[]List of menu items to appear in list

FAQs

Package last updated on 24 Sep 2021

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