0.5.9 • Published 3 years ago

@bdt-component-library/link v0.5.9

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

Link 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 links according to style guide conventions.

API

proptyperequireddefaultexplanation
classNamestringno""Adds an optional classname to the component
childrenReact nodeyesn/aThe inner content of the component
urlstringyesn/aThe href for the link
rolestringno""The role attr for the link
isExternalbooleannofalseAffects the rel, target, and visual distinctions for external links
isTruncatedbooleannofalseChanges styles to use truncation
isActivebooleannotrueChanges styles to inactive
isUnderlinedbooleannotrueDetermines whether or not to use underline with link
displayenum("default", "light", "white")no"default"Changes the foreground/background color mode
onClickfunction(e: event)no() => {}Function executed in place of default a tag behavoir for internal redirects
0.5.9

3 years ago

0.5.8

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.4

3 years ago

0.5.3

3 years ago

0.5.5

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.5.0

3 years ago

0.4.0

3 years ago

0.3.4

3 years ago

0.3.3

3 years ago

0.3.2

4 years ago

0.3.1

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

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago