konstantin-paulus 7ace383dbe Update JSX documentation to clarify group behavior and paint usage
Revise the documentation for JSX elements, specifically the `<group>`, `<text>`, and paint elements, to enhance clarity regarding their properties and behaviors. The `<group>` now emphasizes its auto-sizing feature based on children, while `<text>` and paint elements have been updated to reflect the use of `fill` instead of `color`. Additionally, the README has been updated to describe the pseudo-SVG nature of the markup, ensuring users have accurate and comprehensive information.
2026-07-12 10:54:06 +02:00

650 B

<group>

A container with a transform but no dimensions of its own: a group derives its box from its children, and they are positioned relative to it.

<group x={100} y={100}>
  {/* children */}
</group>

Props

A group takes only transform (x, y, rotation, opacity) and timing (start, end) props (see common props and timing.md). It has no fill and no explicit width / height, and takes no paint children: its size is auto-fit from its children. When timing is omitted, a group spans its children in time as well (see timing.md).