Overview
TheBorder type allows you to add borders around elements with customizable width, color, and alignment.
Creating Borders
Basic Border
Builder Pattern
Borders use a fluent builder API:Border Properties
Border Width
TheBorderWidth type controls the width of each side:
Border Color
Border Alignment
Control how the border is positioned relative to the element:Usage Examples
Simple Border
Asymmetric Border
Outer Border
With Corner Radius
Borders work seamlessly with rounded corners:Border Visibility
Borders are only rendered if:- At least one side has width > 0
- The color is not transparent
Corner Radius
Control rounded corners withCornerRadius: