Group
Group component - a layout container for organizing and positioning child nodes
import { Group } from "@roku-sdk/components";Group(props: IGroupProps): JSX.ElementDescription
Group component - a layout container for organizing and positioning child nodes.
Group is a layout container node that serves as the base class for organizing and positioning child nodes in the SceneGraph. It provides transformation, rendering, and clipping capabilities for managing visual hierarchies.
Parameters
| Name | Type | Description |
|---|---|---|
props | IGroupProps |
Example
<group
translation={[100, 50]}
opacity={0.8}
>
<rectangle width={200} height={100} color="#0000FFFF" />
<label text="Hello World" />
</group>Updated about 4 hours ago
What’s Next
Did this page help you?