Contents

Border

The object for setting borders for component sides or tables.

Declaration

object Border

Properties

NameTypeDescription
allStrokeStyle

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.

bottomboolean

Indicates whether Apple News applies the border to the bottom.

leftboolean

Indicates whether Apple News applies the border to the left side.

rightboolean

Indicates whether Apple News applies the border to the right side.

topboolean

Indicates whether Apple News applies the border to the top.

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