components
Text
v.1.0.0 | SaturnThis component is used by the application's texts.
<Text>Text</Text>
Variant
In Kubit Design System, users have the freedom to generate variants for each component according to their needs. While predefined variants are provided as examples, they can be modified or new ones can be added to align with the specific requirements of each project.
We have set this predefined style for its quick use, access them through the variant prop.
<Text variant="HEADING_H1_EXPANDED">Heading</Text> <Text variant="HEADING_H2_EXPANDED">Heading</Text> <Text variant="HEADING_H3_EXPANDED">Heading</Text> <Text variant="HEADING_H4_EXPANDED">Heading</Text>
<Text variant="PARAGRAPH_LARGE_EXPANDED">Paragraph</Text> <Text variant="PARAGRAPH_MEDIUM_EXPANDED">Paragraph</Text> <Text variant="PARAGRAPH_SMALL_EXPANDED">Paragraph</Text> <Text variant="PARAGRAPH_CAPTION_EXPANDED">Paragraph</Text>
Cursor
The cursor prop can be used to apply custom cursor to the component.
<Text cursor="pointer">Text</Text>
Transform
The transform prop can be used to apply custom transform to the component.
<Text transform="capitalize">text</Text> <Text transform="uppercase">Text</Text> <Text transform="lowercase">TEXT</Text>
Color
The color prop can be used to apply custom colors to the component.
<Text color="#0303fc">Text</Text>
Custom typography
Apply custom styles without the need to indicate variant or props to the text component.
<Text customTypography={ { font_size: '20px', font_weight: '700', color: '#0303fc' } }>Text</Text>
Component type
Specifies the html tag of the text component. If not specified, it will be rendered as a p.
Check the list of TextComponentType options.
<Text component="span">Text</Text>
Draggable
If draggable is TRUE it means that the element can be dragged.
<Text draggable="true">Text</Text>