You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

LinkText (code)

LinkText is an interactive element that allows users to navigate to a different destination.

import { LinkText } from '@mediahuis/chameleon-react'

Props

NameTypeDefaultRequiredDescription
asFunctionStringNodeObject'a'-Render with a different HTML tag or a different custom component.
brandedBooleanfalse-Render the link in branded style.
childrenNode--Contents displayed within the linkText.
classNameString--Extend classNames.
disabledBoolean--Visually and functionally disables the linkText.
iconRightFunctionStringNodeObject--The icon on the right (extends Icon), choose one of the icons package.
onBlurFunction--Fires when the LinkText loses focus.
onClickFunction--Fires when the LinkText is clicked on.
onFocusFunction--Fires when the LinkText receives focus.
tabIndexString'0'-HTML tabindex attribute https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

As

default: a

Branded

default: false

By default tehe LinkText has a supportive blue color. You can make it brand specifix by using the branded prop.

Disabled

default: undefined

Marking a LinkText as disabled, will disable all interaction with the element.

TabIndex

default: 0

Native html tabindex attribute.

© Copyright 2020 Mediahuis NV. All rights Reserved