Function

BorderStroke

Create BorderStroke class with width and Color

BorderStroke

Source set: Common
public fun BorderStroke(width: Dp, color: Color): BorderStroke

Create BorderStroke class with width and Color

Parameters

width width of the border in Dp. Use Dp.Hairline for one-pixel border.
color color to paint the border with
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: