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

# TableBorder

The object for setting borders for tables.

```
object TableBorder
```

## Discussion

The `TableBorder` object defines a table cell border. The border style is the same for all sides of the table cell. Use a value of `false` for any side of a border that you don’t want to show.

### Example

```json
{
  "componentStyles": {
    "exampleStyle": {
      "tableStyle": {
        "cells": {
          "border": {
            "all": {
              "width": 2,
              "color": "#ddd",
              "style": "solid"
            },
            "left": false,
            "right": false
          }
        }
      }
    }
  }
}
```

---

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)