# TextLayer.stroke
The stroke applied to the text, if one exists.

{/* Do not edit this file. It is automatically generated by API Documenter. */}

## TextLayer.stroke property

The stroke applied to the text, if one exists.

**Signature:**

```typescript
readonly stroke: TextStroke | undefined;
```

## Remarks

Text layers support at most one stroke. Text strokes are solid only — gradient strokes are not supported. Use [TextLayer.createStroke()](/en/creator-api/nodes/text-layer/create-stroke) to create or update the stroke.

## Example

```ts
const stroke = textLayer.createStroke({
  fill: { type: "SOLID", color: { r: 0, g: 0, b: 0 } },
  width: 2,
});

stroke.width.staticValue = 4;
textLayer.stroke?.remove();
```
