halilozercan / compose-richtext

A collection of Compose libraries for advanced text formatting and alternative display types.

Home Page:https://halilibo.com/compose-richtext

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Childless alternatives of CodeBlock, Heading can be removed

halilozercan opened this issue · 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.