Go Main page
Go Main page

Web components

cover

components

Link

v.1.0.0 | Saturn

Usage

import { Link } from '@kubit-ui-web/react-components'
1
<Link variant="PRIMARY" url="/#">Link</Link>

Props

Let's delve into the versatility of the link component by examining its available props:

PropertyTypeDefaultDescription
variant
Required
String-Link variant
url
Required
Node-Content
children
Required
String-Children of the link
actionLinkActionTypeNAVIGATIONType of link action
alignCenterBooleanfalseAlign or not to center
ariasDescribedbyString-Aria id when button should read a text
ariaLabelString-Defines a string value that labels an interactive element
colorString-Color of the text
dataTestIdString-Testing id
decorationTextDecorationTypeAUTOInclude underline in text component
iconIElementOrIcon-Icon
iconPositionString-Icon position
onClickMouseEventHandler-Event click
roleString-Provide semantic meaning to content
stateLinkStateTypeDEFAULTState of link
targetLinkTargetType-Place to display the linked url
textVariantString-Variant of the text component
weightNumber-Weight of the text
draggableBoolean-It indicates if it is draggable
ctvLinkStylesType-Modify styles for the default version of the component