AsciiDiagram

Import

svelte
import { AsciiDiagram } from 'markgraphy';

Basic usage

svelte
<AsciiDiagram
  content={''}
  title={''}
  showCopy={true}
/>

Props

PropTypeDefaultDescription
content?string''Raw ASCII or Unicode diagram text.
title?string''Optional label above the diagram. Uppercase, 1-2 words.
showCopy?booleantrueShow a copy-to-clipboard button. Default true.
bordered?booleantrueDashed border around the diagram. Default true.
glow?booleanfalsePhosphor 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?SnippetCustom content instead of text.

Exported types

  • AsciiDiagramProps