---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.3
alternate:
  - https://divkit.tech/docs/en/concepts/divs/2/div-stroke.md
  - https://divkit.tech/docs/ru/concepts/divs/2/div-stroke.md
---
> **Documentation Index:** Fetch the complete configuration index at https://divkit.tech/docs/en/llms.txt

# div-stroke
Stroke.

## Parameters
| Parameters | Description |
| --- | --- |
| `color` | <p>**string**</p><p>Required parameter.</p><p>Stroke color.</p><p>Valid formats: `#RGB`, `#ARGB`, `#RRGGBB`, `#AARRGGBB`.</p> |
| `style` | <p>**object**</p><p>Stroke style. Supported for border stroke only.</p><p>The value has the type `div-stroke-style`.</p><p>Default value: `{"type": "solid"}`.</p><p>Available platforms: Android, iOS, web.</p><p>List of possible values:<li>[div-stroke-style-solid](div-stroke-style-solid.md#div-stroke-style-solid)</li><li>[div-stroke-style-dashed](div-stroke-style-dashed.md#div-stroke-style-dashed)</li></p> |
| `unit` | <p>**string**</p><p>Possible values: `dp`, `sp`, `px`.</p><p>Default value: `dp`.</p> |
| `width` | <p>**number**</p><p>Stroke width.</p><p>Restriction for the value `x`: `x >= 0`.</p><p>Default value: `1`.</p> |

<details>
<summary>JSON</summary>

```json
{
  color*: "string",
  style: div-stroke-style,
  unit: "string",
  width: "number"
}
```
</details>
