# ProvidableStyleProperty

Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/style/StyleProperty.kt+class:androidx.compose.foundation.style.ProvidableStyleProperty) Added in [1.13.0-rc01](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.13.0-rc01) Common/All
- Cmn

  ```
  @ExperimentalFoundationStyleApi
  open class ProvidableStyleProperty<T : Any?> : StyleProperty<T>
  ```

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.compose.foundation.style.StyleProperty](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty)\<T\> ||
|   | ↳ | [androidx.compose.foundation.style.ProvidableStyleProperty](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ProvidableStyleProperty) |

*** ** * ** ***

Defines a style property whose value can be provided within a style scope.

| Parameters |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?>` | type of value held by the property |

## Summary

| ### Public constructors |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?> https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/ProvidableStyleProperty#ProvidableStyleProperty(kotlin.String,kotlin.Boolean,kotlin.Function0)( name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, local: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, defaultValue: () -> T )` | Cmn |

### Inherited functions

From [androidx.compose.foundation.style.StyleProperty](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty) `open T` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#lerp(kotlin.Any,kotlin.Any,kotlin.Float)(a: T, b: T, t: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

Interpolates between value `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#lerp(kotlin.Any,kotlin.Any,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#lerp(kotlin.Any,kotlin.Any,kotlin.Float)` at fraction `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#lerp(kotlin.Any,kotlin.Any,kotlin.Float)`.
Cmn `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#toString()()` Cmn

### Inherited properties

From [androidx.compose.foundation.style.StyleProperty](https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty) `() -> T` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#defaultValue()`

provider for the fallback value when not set
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#isLocal()`

whether this property inherits down the layout tree
Cmn `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://developer.android.com/reference/kotlin/androidx/compose/foundation/style/StyleProperty#name()`

debug/tooling name for the property
Cmn

## Public constructors

### ProvidableStyleProperty

Cmn

```
<T : Any?> ProvidableStyleProperty(
    name: String,
    local: Boolean,
    defaultValue: () -> T
)
```

| Parameters |
|---|---|
| `<T : https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?>` | type of value held by the property |
| `name: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | optional debug name for the property |
| `local: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | whether this property inherits down the layout tree |
| `defaultValue: () -> T` | provider for the fallback value when not set |