---
title: "focused"
description: "Defines a [Style] to be applied when the component is focused. The properties within the provided
`value` Style will override or merge with the base style of the component when a focus
interaction is detected."
type: "function"
---

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


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


```kotlin
@ExperimentalFoundationStyleApi
fun StyleScope.focused(value: Style)
```


Defines a `Style` to be applied when the component is focused. The properties within the provided
`value` Style will override or merge with the base style of the component when a focus
interaction is detected.

#### Parameters

| | |
| --- | --- |
| value | The `Style` to apply on focus. |




