outline

@Stable
fun outline(color: Color, width: Dp = 1.dp, shape: Shape = BorderDefaultShape): Border

Creates a simple outline border with no inset.

Return

A Border configured as an outline.

Since

0.5.0

Parameters

color

The color of the outline.

width

The width of the outline. Defaults to 1.dp.

shape

The shape of the outline. Defaults to following the element's shape.