---
title: "FocusTargetModifierNode"
description: "This modifier node can be delegated to in order to create a modifier that makes a component
focusable."
type: "interface"
---

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


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

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



```kotlin
sealed interface FocusTargetModifierNode : DelegatableNode
```


This modifier node can be delegated to in order to create a modifier that makes a component
focusable.


## Properties

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


```kotlin
val focusState: FocusState
```


The `FocusState` associated with this `FocusTargetModifierNode`. When you delegate to a
`FocusTargetModifierNode`, instead of implementing `FocusEventModifierNode`, you can get the
state by accessing this variable.



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


```kotlin
var focusability: Focusability
```


The `Focusability` for this node.

Note that parent `FocusPropertiesModifierNode`s that set `FocusProperties.canFocus` take
priority over this property.

If the current focus state would be affected by a new focusability, focus will be invalidated
as needed.



## Functions

```kotlin
fun requestFocus(): Boolean
```


Request focus for this node.

#### Returns

| | |
| --- | --- |
|  | true if focus was successfully requested |



```kotlin
fun requestFocus(focusDirection: FocusDirection = FocusDirection.Enter): Boolean
```


Request focus for this node.

#### Parameters

| | |
| --- | --- |
| focusDirection | The direction from which the focus is being requested |


#### Returns

| | |
| --- | --- |
|  | true if focus was successfully requested |




