---
title: StrokeStyle
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/strokestyle
---

# StrokeStyle

The object for defining the color, width, and style of a border or divider.

## Declaration

```data
object StrokeStyle
```

## Properties

color: The stroke color. style: Defines the style of the stroke. Valid values: solid (default): A solid stroke _______ dashed: A dashed stroke – – – – – dotted: A dotted stroke •••••••• width: The width of the stroke line that can be either a number in points, or a string according to Specifying Measurements for Components.

## Discussion

Discussion You can specify the color, width, and style (solid, dashed, or dotted) of a stroke. Such strokes have many uses, including component borders and divider components. You can use this object in Border, Divider, TableRowStyle, TableColumnStyle, ConditionalTableRowStyle, and ConditionalTableColumnStyle. Example {   "components": [     {       "role": "divider",       "stroke": {         "color": "black",         "width": 1       }     }   ] }

## See Also

### Related Documentation

- [Adding a Divider](applenews/adding-a-divider.md)

### Component Style Basics

- [Defining a Component Style](applenews/defining-a-component-style.md)
- [ComponentStyle](applenewsformat/componentstyle.md)
- [CornerMask](applenewsformat/cornermask.md)
- [Border](applenewsformat/border.md)
