Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 466 Bytes

File metadata and controls

15 lines (10 loc) · 466 Bytes

<rect>

A filled rectangle. Takes only paint children; use cornerRadius for rounded corners.

<rect x={40} y={40} width={640} height={360} cornerRadius={24} fill="#FF0055" />

Props

All common props, plus:

Prop Type Default Meaning
fill string light gray Any CSS color; alpha is ignored (use opacity). Shorthand for a solid paint child.