logoAnt Design X

DesignDevelopmentComponentsX MarkdownX SDKPlayground
  • Introduction
  • Code Examples
  • Themes
  • Streaming
    • Syntax Processing
    • Animation Effects
  • Components
    • Overview
    • Think
    • DataChart
    • Custom Component
  • Plugins
    • Overview
    • Latex
    • HighlightCode
    • Mermaid
    • CustomPlugins
    • Theme & Locale

Mermaid

When to Use

When you need to render Mermaid diagrams in Markdown.

Code Demo

API

PropertyDescriptionTypeDefault
childrenDiagram contentstring-
headerHeader sectionReact.ReactNode | nullReact.ReactNode
classNameStyle class namestring
classNamesStyle class namesstring-
highlightPropsCode highlighting configurationhighlightProps-

Semantic DOM

Design Token

Component TokenHow to use?
Token NameDescriptionTypeDefault Value
colorBgTitleTitle background colorstringrgba(0,0,0,0.06)
colorBorderCodeCode block border colorstring#f0f0f0
colorBorderGraphGraph border colorstring#f0f0f0
colorTextTitleTitle text colorstringrgba(0,0,0,0.88)
Global TokenHow to use?
CodeSandbox Icon
codepen icon
External Link Icon
expand codeexpand code
  • root
    root
  • header
    Wrapper element of the header
  • graph
    Wrapper element of the graph
  • code
    Wrapper element of the code