> For the complete documentation index, see [llms.txt](https://docs.realmacsoftware.com/elements-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmacsoftware.com/elements-docs/elements/components/common-controls/borders.md).

# Borders

In Elements, borders are easy to add, customize, and control, allowing you to create clean and consistent boundaries around components with minimal effort. Elements provides a range of options for setting border width, border color, border style, and even border radius (for rounded corners). This flexibility makes it simple to define borders that suit your design, from subtle outlines to bold accents.

{% embed url="<https://youtu.be/PaWL7Vieoh8?si=Y56iftuks4qwy6z1>" %}

### Type

Specify if the component has effects enabled or disabled. The Hover effect works in conjuction with [Transitions](/elements-docs/elements/components/common-controls/transitions.md).

<table><thead><tr><th width="184">Type Properties</th><th>Description</th></tr></thead><tbody><tr><td>None</td><td>No effect classes will be applied to the component.</td></tr><tr><td>Static</td><td>Enable effects.</td></tr><tr><td>Hover</td><td>Enable Start and End state hover effects.</td></tr></tbody></table>

### Style

The Style control allows you to choose between three distict border styles, solid, dashed, and dotted.

<table><thead><tr><th width="184">Style Properties</th><th>Description</th></tr></thead><tbody><tr><td>Solid</td><td>No effect classes will be applied to the component.</td></tr><tr><td>Dashed</td><td>Enable effects.</td></tr><tr><td>Dotted</td><td>Enable Start and End state hover effects.</td></tr></tbody></table>

### Colour and Opacity

Define a colour and oppacity for the border. Colour swatches are defined in the Theme Studio.

### Width

The Width property controls the thickness of the border. Width can be set for all four sides of an element—top, right, bottom, and left—or individually for each side. A custom pixel value can also be set.

### Radius

The Radius property controls the roundness of the border. Radius can be set for all four sides of an element—top, right, bottom, and left—or individually for each side. A custom pixel value can also be set.

## Border UI in Elements

<figure><img src="/files/zpfKAM2B3VsBSaa1jnBG" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.realmacsoftware.com/elements-docs/elements/components/common-controls/borders.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
