Skip to content

AnsiHtml

API reference and demos for AnsiHtml.

Source

import { AnsiHtml } from "@flanksource/clicky-ui/data";
Colors · Open in Storybook
Test Output · Open in Storybook
Inline Span · Open in Storybook

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.