# selectedItem

> Returns the selected item from the data source. If multiple items are selected, returns the first selected item.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
[CreateProperty(ReadOnly = true)]
public object selectedItem { get; }
```
