Link
A link component who can get as
property to pass custom linker. This component is a child from UniversalLink
component.
Install and import
Variants
Can be primary
by default or secondary
It can also be disabled
It works on multiple lines too
What is underlined by default?
Link
will add an underline to text nodes & Text
components
Security
For a target _blank
we add rel='noopener noreferrer'
Usage with React Router
Properties
Name | Type(s) | Default | Required |
---|---|---|---|
children | node | ||
variant | primary secondary |
Dependencies
- - @welcome-ui/system^3.0.0-alpha.2
- - @welcome-ui/universal-link^3.0.0-alpha.2
Peer dependencies
- - @xstyled/styled-components^2.1.0
- - @xstyled/system^2.1.0
- - react^16.10.2 || ^17.0.1
- - react-dom^16.10.2 || ^17.0.1
- - styled-components^5.0.0