MermaidDiagram Tool
Mermaid
Diagram Tool
Used to render diagrams with Mermaid.
Importimport { Mermaid } from "@ant-design/x"; |
Sourcecomponents/mermaid |
Docs |
Importimport { Mermaid } from "@ant-design/x"; |
Sourcecomponents/mermaid |
Docs |
| Property | Description | Type | Default |
|---|---|---|---|
| children | Code content | string | - |
| header | Header | React.ReactNode | null | React.ReactNode |
| className | Style class name | string | |
| classNames | Style class name | string | - |
| highlightProps | Code highlighting configuration | highlightProps | - |
| Token Name | Description | Type | Default Value |
|---|---|---|---|
| colorBgTitle | Title background color | string | rgba(0,0,0,0.06) |
| colorBorderCode | Code block border color | string | #f0f0f0 |
| colorBorderGraph | Graph border color | string | #f0f0f0 |
| colorTextTitle | Title text color | string | rgba(0,0,0,0.88) |