sigilUI

Diagram Connector

Link diagram elements with a styled connector.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

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

Usage

<div className="flex flex-wrap items-center justify-center gap-4"><DiagramNode label="Client" /><DiagramConnector direction="horizontal" label="HTTPS" length={100} /><DiagramNode label="API" /></div>

Props

PropTypeDefaultDescription
variantConnectorVariant—Selects a supported visual treatment.
directionConnectorDirection—Direction configuration.
labelstring—Readable label for the component.
lengthnumber—Length configuration.
strokeColorstring—Stroke Color configuration.
arrowSizenumber—Arrow Size configuration.

Token integration

CSS VariablePurpose
--s-border-strongBorder strong
--s-borderBorder
--s-text-mutedText muted
--s-font-monoFont mono