← All components

<text>

Content Wallpaper Widget

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

Example

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

Attributes

Name Type Default Description
style String
displayLargedisplayMediumdisplaySmallheadlineLargeheadlineMediumheadlineSmalltitleLargetitleMediumtitleSmallbodyLargebodyMediumbodySmalllabelLargelabelMediumlabelSmall
bodyMedium M3 typography preset.
color Color Text color
fontSize Sp Font size
fontFamily String Font family name
fontWeight String
100200300400500600700800900
Font weight (numeric ladder; named weights like `bold`, `light` also accepted).
letterSpacing Wallpaper only Sp Letter spacing
lineHeight Wallpaper only Sp Line height
maxLines Int Maximum number of lines
align String
startcenterendjustify
start Text alignment.