← 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.
colorColor—Text color
fontSizeSp—Font size
fontFamilyString—Font family name
fontWeightString
100200300400500600700800900
—Font weight (numeric ladder; named weights like bold, light also accepted).
letterSpacingWallpaper onlySp—Letter spacing
lineHeightWallpaper onlySp—Line height
maxLinesInt—Maximum number of lines
alignString
startcenterendjustify
startText alignment.