ModifierBorderSample
@Sampled
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun ModifierBorderSample() {
val shape = RemoteRoundedCornerShape(16.rdp)
RemoteBox(
modifier =
RemoteModifier.border(width = 2.rdp, color = Color(0xFF1E88E5).rc, shape = shape)
.clip(shape)
.background(Color(0xFFE3F2FD).rc)
.padding(horizontal = 20.rdp, vertical = 12.rdp),
contentAlignment = RemoteAlignment.Center,
) {
RemoteText(text = "Rounded Border".rs, color = Color(0xFF0D47A1).rc)
}
}