← All components

<path>

ContentWallpaper

Vector path drawn from an SVG-subset d attribute (M/L/H/V/C/Z). Use for constellations, decorative flourishes, and bespoke shapes.

Example

<path d="M 10,10 L 40,30 L 70,15 L 90,50" strokeColor="#E8DDC4" strokeWidth="1dp" />

Attributes

NameTypeDefaultDescription
dString—SVG path data. Coordinates are in dp within the element's width/height canvas.
widthDp100dpCanvas width
heightDp100dpCanvas height
colorColor—Fill colour. Omit for stroke-only.
strokeColorColor—Stroke colour. Omit for fill-only.
strokeWidthDp0dpStroke width. 0 = no stroke.
strokeCapString
roundbuttsquare
roundStroke cap.
strokeJoinString
roundmiterbevel
roundStroke join.
strokeMiterFloat4Miter limit (when strokeJoin=miter)
strokeDashArrayString—Comma-separated dp dash pattern, e.g. "8dp,4dp". Empty = solid.
opacityWallpaper onlyFloat1.0Opacity (0.0–1.0)
rotateWallpaper onlyFloat—Rotation in degrees, clockwise around the element's centre. Takes expressions, e.g. "{dt:minuteAngle}" for a clock hand.
scaleWallpaper onlyString—Uniform scale factor, or 'sx,sy' for axis-specific
offsetWallpaper onlyString—Translation 'x,y' in dp or % (e.g. '8dp,-4dp' or '10%,0%')
blurWallpaper onlyDp—Blur radius (Dp) applied to the element and its children
clipToBoundsWallpaper onlyBooleanfalseClip children that draw outside this element's bounds
requiredWidthWallpaper onlyDp—Width that ignores the parent's constraints (Compose requiredWidth); use with a clipped parent
requiredHeightWallpaper onlyDp—Height that ignores the parent's constraints (Compose requiredHeight); use with a clipped parent
animateWallpaper onlyString—Animation preset shorthand, e.g. "pulse:2s", "breathe:4s", "spin:8s", "bob:3s:8dp", "sway:4s:6", "fade:3s:0.3:1", "shimmer:2s". Reads the shared animation clock so all animated elements stay phase-locked.
refreshWallpaper onlyString—Update rate for this element and its children, independent of the root updateFrequency: "frame" re-evaluates every animation frame (a sweeping second hand bound to {dt:secondAngleSmooth}); "500ms", "1s", "1m" run their own tick.
transitionWallpaper onlyString
fadeslideUpslideDownflipTopflipBottom
—One-shot animation played when the content changes: "<preset>[:duration][:delay]", e.g. "fade:300ms" or "flipTop:300ms". The change is detected on transitionKey, or on the text for <text>.
transitionKeyWallpaper onlyString—Expression whose value triggers the transition when it changes, e.g. "{dt:minute}"
overlayVisibleBooleanfalseKeep this element visible when the widget renders in overlay mode (default: hidden, the wallpaper draws it)