---
title: "group"
description: "DSL extension for adding a [VectorGroup] to [this].

See [ImageVector.Builder.addGroup] for the corresponding builder function."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
inline fun ImageVector.Builder.group(
    name: String = DefaultGroupName,
    rotate: Float = DefaultRotation,
    pivotX: Float = DefaultPivotX,
    pivotY: Float = DefaultPivotY,
    scaleX: Float = DefaultScaleX,
    scaleY: Float = DefaultScaleY,
    translationX: Float = DefaultTranslationX,
    translationY: Float = DefaultTranslationY,
    clipPathData: List<PathNode> = EmptyPath,
    block: ImageVector.Builder.() -> Unit,
) = apply {
    addGroup(name, rotate, pivotX, pivotY, scaleX, scaleY, translationX, translationY, clipPathData)
    block()
    clearGroup()
}
```


DSL extension for adding a `VectorGroup` to `this`.

See `ImageVector.Builder.addGroup` for the corresponding builder function.

#### Parameters

| | |
| --- | --- |
| name | the name of the group |
| rotate | the rotation of the group in degrees |
| pivotX | the x coordinate of the pivot point to rotate or scale the group |
| pivotY | the y coordinate of the pivot point to rotate or scale the group |
| scaleX | the scale factor in the X-axis to apply to the group |
| scaleY | the scale factor in the Y-axis to apply to the group |
| translationX | the translation in virtual pixels to apply along the x-axis |
| translationY | the translation in virtual pixels to apply along the y-axis |
| clipPathData | the path information used to clip the content within the group |
| block | builder lambda to add children to this group |




