AsciiDiagram
Import
import { AsciiDiagram } from 'markgraphy';Basic usage
<AsciiDiagram
content={''}
title={''}
showCopy={true}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
content? | string | '' | Raw ASCII or Unicode diagram text. |
title? | string | '' | Optional label above the diagram. Uppercase, 1-2 words. |
showCopy? | boolean | true | Show a copy-to-clipboard button. Default true. |
bordered? | boolean | true | Dashed border around the diagram. Default true. |
glow? | boolean | false | Phosphor glow on accent tokens. Default false. |
fontSize? | string | '0.85rem' | Font size of the diagram text. |
lineHeight? | string | '1.35' | Line height of the diagram text. |
align? | `‘left’ | ‘center’` | 'left' |
class? | string | '' | — |
children? | Snippet | — | Custom content instead of text. |
Exported types
AsciiDiagramProps