0.6.3 • Published 3 years ago

@bdt-component-library/tooltip v0.6.3

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

Tooltip 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 tooltips according to style guide conventions.

API

proptyperequireddefaultexplanation
displayenum("default", "light")no"default"Changes the foreground/background color mode
childrenReact nodeyesn/aThe primary component to receive tooltip effects
hoverContentReact elementyesn/aThe tooltip element or text
tooltipClassstringnon/aAdds an optional classname to the tooltip element
classNamestringnon/aAdds an optional classname to the main component
staticPositionenum("topRight", "topLeft", "bottomRight", "bottomLeft")non/aDetermines the position of the displayed tooltip text, if using static positioning
descriptionstringnon/aSets optional aria, title, and id attrs
0.6.3

3 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.5.4

4 years ago

0.6.0

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.1

4 years ago

0.5.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago