---
title: "NestedStyleConsumerStyleScope"
description: "A scope that allows applying a style defined in a parent style."
type: "interface"
lastmod: "2026-09-24"
---
## API Reference

> Source set: Common

```kotlin
public interface NestedStyleConsumerStyleScope
```

A scope that allows applying a style defined in a parent style.

## Functions

### applyNestedStyle

> Source set: Common

```kotlin
public fun applyNestedStyle(key: NestedStyleKey)
```

Applies a style with the given `key` defined in a parent style. If no style is provided by
the parent for the given `key`, calling this is equivalent to an empty style.

#### Parameters

| | |
| --- | --- |
| key | the key used to look up the style to apply |
