@brighthr/component-link
v1.1.10
Published
To install, type the following into the command line at the root of your project:
Readme
Link
To install, type the following into the command line at the root of your project:
npm i @brighthr/component-linkTo 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 | Iftrue, |
| 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 | Iftrue`, |
