Skip to main content
<Connector> draws a line between two shapes and converts to a native PowerPoint connector, so it stays attached when someone moves the shapes in PowerPoint afterwards. For a plain horizontal or vertical rule that isn’t attached to anything, use a <div> with border-top or border-left instead.

Endpoints

Each end of a connector is either a shape anchor or a coordinate, and the two can be mixed on the same connector. Shapes referenced by from or to need a unique integer data-id.
closest connects to the nearest edge point facing the other endpoint, which is what you want for circles and hub shapes.

Variants

Variant names are PowerPoint’s own presets, and the number is the segment count. A connector with N segments has N−1 corners, so bentConnector2 is the single-elbow one. curvedConnector25 follow the same pattern with smooth curves instead of right angles. Adjustable points are what waypoints shifts. bentConnector2 has none because its corner is fixed by where the two endpoints sit, so it takes no waypoints value.

Common forms

Diagram patterns

Lay the shapes out with grid or flex, then add connectors. Positions resolve from the rendered layout, so you don’t need to compute coordinates.

Issue tree

The root spans all three rows, so the middle child connects straight across while the outer two elbow.

Horizontal flow

Hub and spoke

closest on the hub means each spoke meets the circle at the point facing it, rather than all four converging on one edge.