# `` A rectangle. Takes [paint children](./paints.md), plus [``, ``, ``](./styles.md), [``](./animations.md) and [``](./keyframes.md); use `cornerRadius` for rounded corners. ```tsx ``` ## Props All [common props](./elements.md#common-props), plus: | Prop | Type | Default | Meaning | | ---- | ---- | ------- | ------- | | `fill` | `string` | none | Any CSS color; alpha is ignored (use `opacity`). Shorthand for a solid paint child, drawn beneath any paint children. | | `clipPath` | `boolean` | `false` | Makes the rect a clip path of its parent instead of a drawn shape — see below. `mask` is the old spelling and still works. | A rect with neither `fill` nor a paint child draws nothing; it is still a box: its clip paths cut it, it carries children, and it takes up its place in the timeline. Without `width`/`height` a rect is 100×100. ## Clip paths A `` clips the element holding it instead of drawing: the parent's fills, strokes, shadows and children show only inside the rect's box. [``](./ellipse.md), [``](./polygon.md) and [``](./path.md) work the same way and clip to their curve or outline; everything below applies to them too. It is still a rect — same coordinates, `cornerRadius`, transform and timing — so it can be moved, rotated, keyframed and animated independently of what it clips: a clip path whose `width` is keyframed across a text is a wipe, one that starts later than its parent is a reveal. ```tsx Hello World ``` - Any node can hold clip paths (``, ``, `