@brighthr/component-link
v1.1.5
Published
To install, type the following into the command line at the root of your project:
Downloads
3,143
Readme
Link
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-link
To implement the Link component into your project you’ll need to add the import:
import Link from '@brighthr/component-link';
After adding import into your project you can use it simply like:
<Link />
Props
| Name | Type | Default | Description |
|---------------|-------------------------------------------|------------|------------------------------------------------------------|
| anchorRemoved | boolean
| false
| If true
, removes the anchor tag. |
| color | 'primary'
'accent'
'error'
'white'|
'accent'| Sets the color of the Link. |
| iconName |
IconName | | Sets the icon to display on the left (See Icon component). |
| iconPosition |
'left'
'right' | | Sets the position of the icon. |
| outlineButton |
boolean |
false | If
true, |
| size |
'xs'
'sm'
'base'
'lg'
'xl' |
'base' | Sets the size of the Link. |
| text |
string | `` | Sets the text to display in the Link. |
| textButton |
boolean |
false | If
true`, |