on
fun <T> on(key: <Error class: unknown class><T>, decoration: @Composable (value: T, context: BlockDecorationContext) -> Unit)
Registers a composable decoration for the specified AttributeKey. Adjacent paragraphs sharing identical key values will automatically be merged.
Parameters
key
The AttributeKey identifying block paragraphs to decorate.
decoration
Composable lambda invoked with the typed attribute value and layout context.