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

```kotlin
class Levitated(
        internal val alignment: Alignment,
        internal val scrim: (@Composable () -> Unit)? = null,
        internal val dragToResizeState: DragToResizeState? = null,
    ) : PaneAdaptedValue
```

Indicates that the associated pane should be levitated with the specified [alignment](/jetpack-compose/androidx.glance/glance/classes/Alignment).

#### Parameters

| | |
| --- | --- |
| alignment | the alignment of the levitated pane relative to the pane scaffold; the alignment can also be provided as anchoring to a certain alignment line or a certain element in the window. See [Alignment](/jetpack-compose/androidx.glance/glance/classes/Alignment) for more information. |
| scrim | the scrim to show when the levitated pane is shown to block user interaction with the underlying layout and emphasize the levitated pane; by default it will be `null` and no scrim will show; to display a scrim, we recommend to use [LevitatedPaneScrim](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/composable-functions/LevitatedPaneScrim) as a default implementation. |
| dragToResizeState | the optional state to enable the levitated pane to be resizable by dragging; it will be used to store and control current dragging; see [rememberDragToResizeState](/jetpack-compose/androidx.compose.material3.adaptive/adaptive-layout/composable-functions/rememberDragToResizeState) for more details about how to implement the drag-to-resize behavior. |

## Secondary Constructors

```kotlin
constructor(
        alignment: Alignment,
        scrim: (@Composable () -> Unit)? = null,
    ) : this(alignment, scrim, null)
```