← All components

<text>

ContentWallpaperWidget

Text display with M3 typography presets, expressions, and styling.

Example

<text style="displayLarge" color="#FFF">{dt:time:HH:mm}</text>

Attributes

NameTypeDefaultDescription
styleString
displayLargedisplayMediumdisplaySmallheadlineLargeheadlineMediumheadlineSmalltitleLargetitleMediumtitleSmallbodyLargebodyMediumbodySmalllabelLargelabelMediumlabelSmall
bodyMediumM3 typography preset.
colorColorText color
fontSizeSpFont size
fontFamilyStringFont family name
fontWeightString
100200300400500600700800900
Font weight (numeric ladder; named weights like bold, light also accepted).
letterSpacingWallpaper onlySpLetter spacing
lineHeightWallpaper onlySpLine height
maxLinesIntMaximum number of lines
alignString
startcenterendjustify
startText alignment.