Parameters
Border configuration. Can be a configuration object, a Style for the border, or a number for border width.
Adds a border around this view.
.border(config?: { style: Style; width?: number; } | Style | number): Component;
Rectangle()
.fill(Color("white"))
.border(Color("black"))
Circle()
.fill(Color("blue"))
.border(4)
Text("Bordered text")
.border({ style: Color("red"), width: 2 })