Go Main page
Go Main page

Web components

cover

components

Text

v.1.0.0 | Saturn

Usage

import { Text } from '@kubit-ui-web/react-components'
1
<Text>Text</Text>

Props

Let's delve into the versatility of the text component by examining all its avalaible props.

PropertyTypeDefaultDescription
alignString-Text align
-String-Aria label of the text
-String-Identifies the element (or elements) that labels the element it is applied to.
-String-identifies the element (or elements) that describes the element on which the attribute is set
-String-Indicates whether the element is exposed to an accessibility API.
children
Required
ReactNode-This will appear in your text
colorString-Color of the text
componentTextComponentType or GenericLinkType-Component type to transform text to
cursorString-CSS cursor
customTypographyTypographyTypes-Apply TypographyTypes styles without the need to indicate variant or props to the text component
dataTestIdString-Test id
decorationTextDecorationType-Include underline in text
displayTextDisplayType-Component display: placing
draggableBoolean-Set the draggable attribute
htmlForString-Prop used when rendering a link
idString-Prop used as an identifier
isDisabledBoolean-It indicates if the component is disabled
roleAriaRole-Prop used for accesibility to asign a rol
targetString-Prop used when rendering a link to specifies target attribute
transformTextTransformTypenoneText transform
urlString-Prop used when rendering a link to navigate to a url
variantString-Variant to add Text styles
weightNumber-Font weight
onClickMouseEventHandler-Function of the text when user click
ctvTextVariantStylesType-Modify styles for the default version of the component