maskBorder

@Composable
abstract fun Modifier.maskBorder(border: BorderStroke, shape: Shape): Modifier

Draw a border on the composable using the given shape, taking into account the item's size in the cross axis and mask in the main axis.

Parameters

border

the border to be drawn around the composable

shape

the shape of the border