BlockContainer
fun BlockContainer(context: BlockDecorationContext, modifier: Modifier = Modifier, background: @Composable BoxScope.() -> Unit? = null, leading: @Composable BoxScope.() -> Unit? = null, trailing: @Composable BoxScope.() -> Unit? = null)
A slot-based layout helper that simplifies constructing custom decorations for visual blocks.
Parameters
context
The BlockDecorationContext provided by the editor.
modifier
Additional modifier applied to the container.
background
Optional composable content rendered in the background of the entire block.
leading
Optional composable content aligned to the start/leading edge of the block (e.g., vertical bar).
trailing
Optional composable content aligned to the end/trailing edge of the block.