0.5.1 • Published 4 years ago
@bdt-component-library/drop-down-menu v0.5.1
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
prop | type | required | default | explanation |
---|---|---|---|---|
className | string | no | n/a | Adds an optional classname to the component |
behavior | enum("hover", "click") | no | "hover" | Determines if menu is opened via button or link |
text | string | yes | no | Adds text for menu item |
description | string | no | no | Adds id to menu list |
id | string | no | no | Adds id to menu open link if using link, and aria-labelledby to menu list |
parentUrl | string | no | no | Adds href if using menu open link |
size | enum("default", "compact") | no | "default" | Determines the size variant |
items | array("any") | no | [] | List of menu items to appear in list |
0.5.1
4 years ago
0.5.0
4 years ago
0.4.0
4 years ago
0.3.2
4 years ago
0.3.1
4 years ago
0.3.0
4 years ago
0.2.1
4 years ago
0.2.0
4 years ago
0.1.12
4 years ago
0.1.13
4 years ago
0.1.11
4 years ago
0.1.10
4 years ago
0.1.9
4 years ago
0.1.8
4 years ago
0.1.6
4 years ago
0.1.5
4 years ago
0.1.4
4 years ago
0.1.3
4 years ago
0.1.2
4 years ago
0.1.1
4 years ago
0.1.0
4 years ago