sigilUI

Diagram Callout Line

Connect an annotation to a specific point in a diagram.

@sigil-ui/componentsReact

Preview

Annotated connector Interactive

Import

import { DiagramCalloutLine } from "@sigil-ui/components";

Usage

<svg viewBox="0 0 520 150" className="h-auto w-full" role="img" aria-label="Callout line connecting a token node to its annotation">
    <rect x="36" y="45" width="150" height="60" rx="6" fill="var(--s-surface)" stroke="var(--s-border)" />
    <text x="111" y="80" textAnchor="middle" fill="var(--s-text)" fontFamily="var(--s-font-mono)" fontSize="13">TOKEN NODE</text>
    <DiagramCalloutLine path="M186 75 H330 L370 44" label="COMPILED VALUE" labelX={378} labelY={47} dotX={186} dotY={75} active />
  </svg>

Props

PropTypeDefaultDescription
path (required)string—Path configuration.
labelstring—Readable label for the component.
labelXnumber—Label X configuration.
labelYnumber—Label Y configuration.
dotXnumber—Dot X configuration.
dotYnumber—Dot Y configuration.
activeboolean—Active configuration.

Token integration

CSS VariablePurpose
--s-textText
--s-text-mutedText muted
--s-font-monoFont mono