Skip to main content

IText

View source on GitHub

Plain text.

texttext

Examples

Bold centered heading with custom typography

const heading: IText = {
text: "Document Management",
fontSize: "24px",
fontWeight: 600,
lineHeight: "32px",
color: "#333333",
isBold: true,
noSelect: true,
textAlign: "center"
}

Truncated description with hover tooltip

const description: IText = {
text: "This is a long description that will be truncated if it exceeds the container width...",
fontSize: "14px",
lineHeight: "20px",
color: "#666666",
truncate: true,
title: "Full description shown on hover"
}

Inline processing status with custom styling

const status: IText = {
text: "Processing",
fontSize: "12px",
isInline: true,
isItalic: true,
color: "#0066cc",
display: "inline-flex",
fontWeight: 500
}

Extended by

Properties

PropertyTypeDescription
textstringDefines the text
title?stringDefines the text title
fontSize?stringDefines the text font size
fontWeight?string | numberDefines the text font weight
truncate?booleanSpecifies whether the word wrapping is set
isBold?booleanSpecifies whether the text font weight is set to bold
isItalic?booleanSpecifies whether the text style is set to italic
isInline?booleanSpecifies whether the "display: inline-block" property is set
textAlign?stringSpecifies whether the "text-align" property is set
noSelect?booleanSpecifies whether the text selection is disabled
display?stringSpecifies whether the "display" property is set
lineHeight?stringDefines the text line height
color?stringDefines the text color
className?stringDefines the CSS class for styling the component. Can be used to override or extend the default component styles.