compose-richtext icon indicating copy to clipboard operation
compose-richtext copied to clipboard

Childless alternatives of CodeBlock, Heading can be removed

Open halilozercan opened this issue 2 years ago • 0 comments

CodeBlock and Heading have alternative overloads that take literal text content. These alternatives are proxies to actual implementation which takes composable children. Only child that is passed to actual composable is a Text(...).

This API style of having alternatives is no longer common in Compose, e.g. Button does not offer a label alternative. We should stick with slot API most of the time.

halilozercan avatar Sep 09 '21 21:09 halilozercan