Diagram
Config-driven diagram component with auto-layout, curved edges, clusters, swimlanes, and annotations
Accessibility
- Treat the component as presentational unless it exposes interactive affordances, and label any interactive affordances explicitly.
- Keep heading, reading, and focus order aligned with the surrounding content.
- Expose the essential data in text form, such as a summary, value list, or table, rather than relying on the graphic alone.
Styled quick start
Copy this entrypoint first. It includes the imports required to get the component on screen.
Import options
Root package
ts
import { Diagram } from '@dryui/ui' Per-component subpath
ts
import { Diagram } from '@dryui/ui/diagram' API
Props, CSS variables, and the public data attributes you can target when styling.
| Prop | Type | Description | Default | Required | Bindable |
|---|---|---|---|---|---|
| config | DiagramConfig | — | — | ✓ | — |
| width | number | — | — | — | — |
| height | number | — | — | — | — |