<!--
{
  "availability" : [
    "Apple News Format: 1.7.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppleNews",
  "identifier" : "/documentation/AppleNewsFormat/StrokeStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Apple News Format"
    ],
    "preciseIdentifier" : "data:news_format:StrokeStyle"
  },
  "title" : "StrokeStyle"
}
-->

# StrokeStyle

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

```
object StrokeStyle
```

## 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`](/documentation/AppleNewsFormat/Border), [`Divider`](/documentation/AppleNewsFormat/Divider), [`TableRowStyle`](/documentation/AppleNewsFormat/TableRowStyle), [`TableColumnStyle`](/documentation/AppleNewsFormat/TableColumnStyle), [`ConditionalTableRowStyle`](/documentation/AppleNewsFormat/ConditionalTableRowStyle), and [`ConditionalTableColumnStyle`](/documentation/AppleNewsFormat/ConditionalTableColumnStyle).

### Example

```json
{
  "components": [
    {
      "role": "divider",
      "stroke": {
        "color": "black",
        "width": 1
      }
    }
  ]
}
```

## See Also

  <doc://com.apple.applenews/documentation/AppleNews/adding-a-divider>



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)