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

```kotlin
object VerticalDragHandleDefaults
```

Contains the baseline values used by a [VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

## Functions

```kotlin
@Composable fun colors(): DragHandleColors
```

Creates a [DragHandleColors](/jetpack-compose/androidx.compose.material3/material3/classes/DragHandleColors) that represents the default, pressed, and dragged colors used in
a [VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

<h2 id="colors-color-pressedcolor-draggedcolor">colors</h2>

```kotlin
@Composable
    fun colors(
        color: Color = Color.Unspecified,
        pressedColor: Color = Color.Unspecified,
        draggedColor: Color = Color.Unspecified,
    ): DragHandleColors
```

Creates a [DragHandleColors](/jetpack-compose/androidx.compose.material3/material3/classes/DragHandleColors) that represents the default, pressed, and dragged colors used in
a [VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

#### Parameters

| | |
| --- | --- |
| color | provides a different color to override the default color of the drag handle when it's not being pressed. |
| pressedColor | provides a different color to override the color of the drag handle when it's being pressed but not dragged. |
| draggedColor | provides a different color to override the color of the drag handle when it's being dragged. |

```kotlin
@Composable fun shapes(): DragHandleShapes
```

Creates a [DragHandleShapes](/jetpack-compose/androidx.compose.material3/material3/classes/DragHandleShapes) that represents the default, pressed, and dragged shapes used in
a [VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

<hr class="docs-overload-divider">

<h2 id="shapes-shape-pressedshape-draggedshape">shapes</h2>

```kotlin
@Composable
    fun shapes(
        shape: Shape? = null,
        pressedShape: Shape? = null,
        draggedShape: Shape? = null,
    ): DragHandleShapes
```

Creates a [DragHandleShapes](/jetpack-compose/androidx.compose.material3/material3/classes/DragHandleShapes) that represents the default, pressed, and dragged shapes used in
a [VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

#### Parameters

| | |
| --- | --- |
| shape | provides a different shape to override the default shape of the drag handle when it's not being pressed. |
| pressedShape | provides a different shape to override the shape of the drag handle when it's being pressed but not dragged. |
| draggedShape | provides a different shape to override the shape of the drag handle when it's being dragged. |

<hr class="docs-overload-divider">

<h2 id="overload-3">Overload 3</h2>

```kotlin
fun (): DragHandleSizes
```

Creates a [DragHandleSizes](/jetpack-compose/androidx.compose.material3/material3/classes/DragHandleSizes) that represents the default, pressed, and dragged sizes used in a
[VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

<hr class="docs-overload-divider">

<h2 id="sizes-size-pressedsize-draggedsize">sizes</h2>

```kotlin
fun sizes(
        size: DpSize = DpSize.Unspecified,
        pressedSize: DpSize = DpSize.Unspecified,
        draggedSize: DpSize = DpSize.Unspecified,
    ): DragHandleSizes
```

Creates a [DragHandleSizes](/jetpack-compose/androidx.compose.material3/material3/classes/DragHandleSizes) that represents the default, pressed, and dragged sizes used in a
[VerticalDragHandle](/jetpack-compose/androidx.compose.material3/material3/components/VerticalDragHandle).

#### Parameters

| | |
| --- | --- |
| size | provides a different size to override the default size of the drag handle when it's not being pressed. |
| pressedSize | provides a different size to override the size of the drag handle when it's being pressed but not dragged. |
| draggedSize | provides a different size to override the size of the drag handle when it's being dragged. |