Blocks
TextBlock
TextBlock
TextBlock
TextBlock
Object containing the following properties:
| Property | Description | Type | Default |
|---|---|---|---|
block (*) | must be TextBlock | 'TextBlock' | |
id | string | 'TextBlock' | |
text (*) | Option 1:Plain text; Option 2: i18n {lang: string} | string | Record<string, string> | string | |
color | 'current' | 'transparent' | 'black' | 'white' | 'gray' | 'border' | 'tick' | 'disabled' | 'dimmed' | 'foreground' | 'panel-down' | 'panel' | 'panel-up' | 'panel-plus' | 'accent' | 'accent-up' | 'accent-fg' | 'accent2' | 'accent2-up' | 'accent2-fg' | ... or use a custom template (external:id). Check the Icons page for more information. | ||
variant | 'minimal' | 'small' | 'default' | 'headline' | 'poster' | 'display' | ||
align | 'left' | 'center' | 'right' | ||
fontWeight | 'thin' | 'extralight' | 'light' | 'normal' | 'medium' | 'semibold' | 'bold' | ||
fontStyle | 'normal' | 'italic' | ||
maxLines | Maximum number of visible lines before truncating with ellipsis | number (int, ≥1, ≤10) |
(*) Required.