TextStroke

A stroke applied to a TextLayer.

TextStroke interface

A stroke applied to a TextLayer.

Signature:

interface TextStroke

Remarks

Text strokes are solid and cannot be gradients.

Properties

Property

Modifiers

Type

Description

fill

readonly

SolidPaint

The solid fill paint of the stroke.

width

readonly

Animatable<number>

The width of the stroke.

Methods

Method

Description

remove()

Removes the stroke from the text layer it is applied to.

Last updated: October 8, 2026 at 10:45 AMEdit this page