---
title: "ExplicitGroupsComposable"
description: "This annotation can be applied to [Composable] functions so that no groups will be generated in
the body of the function it annotates. The expectation is that the groups the function should
produce will be created manually using methods on [currentComposer].

Unlike [ReadOnlyComposable], the expectation with this annotation is that the marked [Composable]
does in fact make writes to the [Composer] and produces a single group.

Caution: Use of this annotation removes all guarantees provided by the Compose Compiler and usage
of it should be considered at your own risk."
type: "class"
---

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


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER)
public annotation class ExplicitGroupsComposable
```


This annotation can be applied to `Composable` functions so that no groups will be generated in
the body of the function it annotates. The expectation is that the groups the function should
produce will be created manually using methods on `currentComposer`.

Unlike `ReadOnlyComposable`, the expectation with this annotation is that the marked `Composable`
does in fact make writes to the `Composer` and produces a single group.

Caution: Use of this annotation removes all guarantees provided by the Compose Compiler and usage
of it should be considered at your own risk.



