0.4.5 • Published 4 years ago

@bdt-component-library/menu v0.4.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Menu 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 menus, used to display a set of options, similar to select fields, but used for more general purpose interactions like navigation.

This component is intended to be used with the Option component to render the options, but it will accept any valid react elements as children.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the component
childrenReact elementReact element[]yesn/aHandles the Menu option contents
sizeenum("compact", "default")nofalseDetermines compact or default variant for menu
namestringyesnoDetermines the menu name displayed as the menu button text
leadingIconReact element OR falsenofalseDetermines the leading icon that displays in the menu button (if given an element to display)
variantenum("solid", "outlined", "text", "inverted")no"solid"Determines the menu button variant type
alignenum("left", "right")no"left"Determines the side of the options that the menu button displays
classOverrides{ status: string }no{}Allows specifying classes to override other specific classes in the component
0.4.5

4 years ago

0.4.4

4 years ago

0.4.3

4 years ago

0.4.2

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.1.2

4 years ago

0.2.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago