0.5.9 • Published 3 years ago
@bdt-component-library/link v0.5.9
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
prop | type | required | default | explanation |
---|---|---|---|---|
className | string | no | "" | Adds an optional classname to the component |
children | React node | yes | n/a | The inner content of the component |
url | string | yes | n/a | The href for the link |
role | string | no | "" | The role attr for the link |
isExternal | boolean | no | false | Affects the rel, target, and visual distinctions for external links |
isTruncated | boolean | no | false | Changes styles to use truncation |
isActive | boolean | no | true | Changes styles to inactive |
isUnderlined | boolean | no | true | Determines whether or not to use underline with link |
display | enum("default", "light", "white") | no | "default" | Changes the foreground/background color mode |
onClick | function(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
3 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