---
title: "ExposedDropdownMenuAnchorType"
description: "The type of element that can serve as a dropdown menu anchor."
type: "class"
---

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


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

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


```kotlin
value class ExposedDropdownMenuAnchorType private constructor(private val name: String)
```


The type of element that can serve as a dropdown menu anchor.


## Companion Object

#### Properties

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


```kotlin
val PrimaryNotEditable = ExposedDropdownMenuAnchorType("PrimaryNotEditable")
```


A non-editable primary anchor of the dropdown menu, such as a read-only text field.

An anchor of this type will open the menu with focus.



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


```kotlin
val PrimaryEditable = ExposedDropdownMenuAnchorType("PrimaryEditable")
```


An editable primary anchor of the dropdown menu, such as a text field that allows user
input.

An anchor of this type will open the menu without focus in order to preserve focus on the
soft keyboard (IME).



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


```kotlin
val SecondaryEditable = ExposedDropdownMenuAnchorType("SecondaryEditable")
```


A secondary anchor of the dropdown menu that lives alongside an editable primary anchor,
such as an icon within an editable text field.

If accessibility services are enabled, an anchor of this type will open the menu with
focus. Otherwise, the menu is opened without focus in order to preserve focus on the soft
keyboard (IME).





