跳到主要内容

IText

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
titlestringDefines the text title
fontSizestringDefines the text font size
fontWeightstring | numberDefines the text font weight
truncatebooleanSpecifies whether the word wrapping is set
isBoldbooleanSpecifies whether the text font weight is set to bold
isItalicbooleanSpecifies whether the text style is set to italic
isInlinebooleanSpecifies whether the "display: inline-block" property is set
textAlignstringSpecifies whether the "text-align" property is set
noSelectbooleanSpecifies whether the text selection is disabled
displaystringSpecifies whether the "display" property is set
lineHeightstringDefines the text line height
colorstringDefines the text color
classNamestringDefines the CSS class for styling the component. Can be used to override or extend the default component styles.