AnsiHtml
API reference and demos for AnsiHtml.
Import
Section titled “Import”import { AnsiHtml } from "@flanksource/clicky-ui/data";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
as |
enum |
pre |
Element to render: `pre` for blocks or `span` for inline log cells. |
className |
string |
— | Classes applied to the rendered element. |
text* |
string |
— | Text containing ANSI SGR escape sequences. |