border()
Sets the border properties of the element.
border(
borderWidth: BindingOrValue<StyleOverrides.Offsets | undefined>,
borderColor?: BindingOrValue<UIColor | UIColor.ColorName | undefined>,
borderStyle?: BindingOrValue<string | undefined>,
borderRadius?: BindingOrValue<StyleOverrides["borderRadius"] | undefined>,
): this;
Summary
Configures the border with optional width, color, style, and corner radius. If only width is provided, the color defaults to the divider color.
Parameters
- borderWidth — The width of the border (all sides, or separate offsets), in pixels or string with unit.
- borderColor — The color of the border; defaults to the divider color.
- borderStyle — The style of the border (e.g. “solid”, “dashed”).
- borderRadius — The radius of the border corners, in pixels or string with unit.
Return value
The builder instance for chaining.
Related
class ElementBuilder abstractstatic
An abstract base class for UI element builders.
