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

# ConditionalDivider

The object for defining conditional properties for a divider component, and when the conditional properties are in effect.

```
object ConditionalDivider
```

## Discussion

Use the `ConditionalDivider` object to define an array of conditional divider properties and the conditions under which to apply them. When a condition is met, the value of a property in `ConditionalDivider` overrides the value of the same property if you define it in the parent `Divider` component. See [`Divider`](/documentation/AppleNewsFormat/Divider).

### Example

```json
{
  "components": [
    {
      "role": "heading1",
      "text": "Heading"
    },
    {
      "role": "divider",
      "stroke": {
        "width": 3,
        "color": "#D5B327"
      },
      "conditional": {
        "stroke": {
          "color": "#d5263e"
        },
        "conditions": {
          "platform": "macos"
        }
      }
    }
  ]
}
```

## Relationships

### Inherits From

[`ConditionalComponent`](/documentation/AppleNewsFormat/ConditionalComponent)

---

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)