Package-level declarations
Types
Link copied to clipboard
Draws Mermaid source for MermaidDiagram, which supplies the card, the streaming placeholder and the full-screen viewer around it.
Link copied to clipboard
Size of inline diagrams, for both renderers. Mermaid lays out at 16px text, which at 1px = 1dp reads larger than body copy, so the default is 0.75.
Properties
Link copied to clipboard
The renderer every MermaidDiagram below uses.
Link copied to clipboard
The inline size every MermaidDiagram below uses.
Functions
Link copied to clipboard
@Composable
Renders GitHub-flavoured Markdown with Material 3 styling.
Link copied to clipboard
@Composable
Renders Mermaid source as a diagram. By default with the bundled, offline mermaid.js inside a transparent WebView that sizes itself to the rendered SVG; provide another MermaidRenderer through LocalMermaidRenderer (e.g. NativeMermaidRenderer from ai-elements-mermaid-native) to draw it with Compose Canvas instead.