---
title: "ExpandableState"
description: "State of the Expandable composables.

It's used to control the showing/hiding of extra information either directly or connecting it
with something like a button."
type: "class"
---

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


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

<div class='sourceset sourceset-android'>Android</div>


```kotlin
public class ExpandableState
internal constructor(
    initiallyExpanded: Boolean,
    private val coroutineScope: CoroutineScope,
    private val expandAnimationSpec: AnimationSpec<Float>,
    private val collapseAnimationSpec: AnimationSpec<Float>,
)
```


State of the Expandable composables.

It's used to control the showing/hiding of extra information either directly or connecting it
with something like a button.


## Companion Object

#### Methods

<div class='sourceset sourceset-android'>Android</div>


```kotlin
@Composable
        public fun saver(
            expandAnimationSpec: AnimationSpec<Float>,
            collapseAnimationSpec: AnimationSpec<Float>,
        ): Saver<ExpandableState, Boolean>
```


The default `Saver` implementation for `ExpandableState`.





