NativeMermaidRenderer

Mermaid drawn natively with Compose Canvas by cmp-mermaid (a Kotlin port of Mermaid): no WebView, layout off the main thread, themed from the Material color scheme. Provide it with CompositionLocalProvider(LocalMermaidRenderer provides NativeMermaidRenderer).

Experimental: cmp-mermaid is young, and bundles fonts (~4 MB).

Functions

Link copied to clipboard
@Composable
open override fun Diagram(code: String, fullScreen: Boolean, modifier: Modifier, onClick: () -> Unit?)