provideNestedStyle

Provides style to every descendant that applies key through applyNestedStyle, at any depth. It does not apply to this component. Several ancestors that provide one key all apply, farthest first, so the nearest wins per property.

The nested block executes against the consumer's scope and reads composition locals from its provider. A provided nested block cannot publish another nested block. Every composition root starts a separate style chain, including hosted compositions.

Parameters

key

the key that selects the descendants the style applies to.

style

the style each matching descendant runs.