0.10.6 • Published 3 years ago

@bdt-component-library/banner v0.10.6

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

Banner 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 banners according to style guide conventions.

API

proptyperequireddefaultexplanation
childrenReact nodeyesn/aThe component/text to render inside the button
classNamestringno""Adds an optional classname to the component
idstringno""Adds an optional id to the component
variantenum("success", "error", "informational", "warning")no"error"Changes icon and color style for chosen variant
alertMessagestringnonoMessage to display in the banner
isDismissablebooleannofalseDetermines whether or not the banner can be dismissed
isFixedbooleannofalseUses fixed positioning (necessary for positioning if not using with a container)
autoDismissnumberno0Dismisses the banner on a timer according to the milliseconds specified
actionReact componentnonullRenders a component, intended to be an action on the banner (will apply styles to button internally)
positionenum("top", "bottom")no"top"Positions the banner on the page
zIndexnumberno1Determines z-index style for the component
0.10.5

4 years ago

0.10.6

3 years ago

0.10.3

4 years ago

0.10.4

4 years ago

0.10.2

4 years ago

0.9.4

4 years ago

0.9.3

4 years ago

0.10.1

4 years ago

0.10.0

4 years ago

0.9.2

4 years ago

0.9.1

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.7.1

4 years ago

0.7.0

4 years ago

0.6.3

4 years ago

0.6.2

4 years ago

0.6.1

4 years ago

0.6.0

4 years ago

0.5.3

4 years ago

0.5.2

4 years ago

0.5.0

4 years ago

0.5.1

4 years ago

0.4.8

4 years ago

0.4.7

4 years ago

0.4.6

4 years ago

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.2.4

4 years ago

0.2.3

4 years ago

0.2.1

4 years ago

0.2.2

4 years ago

0.2.0

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