Clipping and masking modifiers control which parts of a component are visible.Documentation Index
Fetch the complete documentation index at: https://docs.metabind.ai/llms.txt
Use this file to discover all available pages before exploring further.
clipped trims content to the component’s rectangular bounds; clipShape clips to any Shape — circle, capsule, rounded rectangle; mask uses an image’s luminance to drive transparency.
clipShape clips both visuals and hit testing, so taps land only inside the shape. To change just the hit area without altering visuals, see contentShape. For overall transparency, see opacity.
clipped
Clips a component’s content to its bounding frame.clipped() clips to the component’s rectangular bounds. For clipping to a custom shape, use clipShape instead.
clipShape
Clips a component’s content to a specific shape.The shape to clip to. Common shapes include
Circle(), Capsule(), RoundedRectangle(cornerRadius), Rectangle(), and Ellipse().clipShape clips both the visual content and the hit-testing area. To change only the hit-testing shape without clipping visuals, use contentShape.
mask
Masks the component using an image, controlling which areas are visible.The image used as a mask. White areas show the underlying content, black areas hide it. Gray values produce partial transparency.
mask-image.
See also
- contentShape — change the hit-testing shape without clipping visuals
- cornerRadius — round the corners of a component
- opacity — control overall transparency
- overlay — layer a component on top