---
title: "DraggableAnchors"
description: "Create a new [DraggableAnchors] instance using a builder function."
type: "function"
---

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


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


```kotlin
fun <T : Any> DraggableAnchors(builder: DraggableAnchorsConfig<T>.() -> Unit): DraggableAnchors<T>
```


Create a new `DraggableAnchors` instance using a builder function.

#### Parameters

| | |
| --- | --- |
| builder | A function with a `DraggableAnchorsConfig` that offers APIs to configure anchors |


#### Returns

| | |
| --- | --- |
|  | A new `DraggableAnchors` instance with the anchor positions set by the `builder` function. |




