androidx.compose.ui.focus

focusTarget

Function · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

Add this modifier to a component to make it focusable.

Parameters

fun Modifier.focusTarget(): Modifier
Library docs

Add this modifier to a component to make it focusable.

Focus state is stored within this modifier. The bounds of this modifier reflect the bounds of the focus box.

Note: This is a low level modifier. Before using this consider using [Modifier.focusable()]androidx.compose.foundation.focusable. It uses a focusTarget in its implementation. [Modifier.focusable()]androidx.compose.foundation.focusable adds semantics that are needed for accessibility.