# clip

> Clips the content to [shape].

## Code Examples

### ModifierBackgroundAndClipSample

```kotlin
@Sampled
@Preview
@PreviewWrapper(RemoteComponentPreviewWrapper::class)
@Composable
fun ModifierBackgroundAndClipSample() {
    RemoteBox(
        modifier =
            RemoteModifier.clip(RemoteRoundedCornerShape(16.rdp))
                .background(Color(0xFF1E88E5).rc)
                .padding(horizontal = 20.rdp, vertical = 12.rdp),
        contentAlignment = RemoteAlignment.Center,
    ) {
        RemoteText(text = "Clipped Background".rs, color = Color.White.rc)
    }
}
```
