---
title: Border
framework: applenewsformat
role: symbol
role_heading: Object
path: applenewsformat/border
---

# Border

The object for setting borders for component sides or tables.

## Declaration

```data
object Border
```

## Properties

all: Defines the stroke properties of the border. You can’t set stroke properties for each side; you can only disable or enable the border for each side. bottom: Indicates whether Apple News applies the border to the bottom. left: Indicates whether Apple News applies the border to the left side. right: Indicates whether Apple News applies the border to the right side. top: Indicates whether Apple News applies the border to the top.

## Discussion

Discussion The Border object defines a component or a table cell border, including the border stroke style. The border style is the same for all sides of the component or table cell. Use a value of false for any side of a border that you don’t want to show. You can use this object in ComponentStyle, TableCellStyle, and ConditionalTableCellStyle. Example {   "componentStyles": {     "exampleComponentStyle": {       "border": {         "all": {           "width": 1,           "color": "#ddd"         },         "left": false,         "right": false       }     }   } }

## See Also

### Component Style Basics

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