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

# div-border
Stroke around the element.

## Parameters
| Parameters | Description |
| --- | --- |
| `corner_radius` | <p>**int**</p><p>One radius of element and stroke corner rounding. Has a lower priority than `corners_radius`.</p><p>Restriction for the value `x`: `x >= 0`.</p> |
| `corners_radius` | <p>**object**</p><p>Multiple radii of element and stroke corner rounding.</p><p>The value has the type `div-corners-radius`.</p> |
| `has_shadow` | <p>**bool_int**</p><p>Adding shadow.</p><p>Default value: `false`.</p> |
| `shadow` | <p>**object**</p><p>Parameters of the shadow applied to the element stroke.</p><p>The value has the type `div-shadow`.</p> |
| `stroke` | <p>**object**</p><p>Stroke style.</p><p>The value has the type `div-stroke`.</p> |

<details>
<summary>JSON</summary>

```json
{
  corner_radius: "int",
  corners_radius: {
    bottom-left: "int",
    bottom-right: "int",
    top-left: "int",
    top-right: "int"
  },
  has_shadow: "bool_int",
  shadow: {
    alpha: "number",
    blur: "int",
    color: "string",
    offset*: {
      x*: {
        unit: "string",
        value*: "number"
      },
      y*: {
        unit: "string",
        value*: "number"
      }
    }
  },
  stroke: {
    color*: "string",
    style: div-stroke-style,
    unit: "string",
    width: "number"
  }
}
```
</details>
