メインコンテンツまでスキップ

Get Involved

Whether you are a developer, designer, writer, project builder, or just someone passionate about Cardano.

Connection Line

ConnectionLine

A subtle dotted connector with optional endpoint dots. Use it to visually link related cards in flows, steppers, timelines, or relationship diagrams.

Basic Usage

import ConnectionLine from '@site/src/components/Layout/ConnectionLine';

<ConnectionLine direction="horizontal" />
<ConnectionLine direction="vertical" withDots={false} />

Props

PropTypeDefaultDescription
direction'horizontal' | 'vertical''horizontal'Orientation of the line. Vertical needs a height-providing parent.
withDotsbooleantrueShow small dots at each end of the line.
classNamestringAdditional class name on the root span.
styleobjectInline style passed to the root span (useful for setting custom length).

Live Preview

Horizontal

AB

Vertical

AB

Notes

  • Color is derived from a CSS custom property --connection-color that you can override on the parent for theming.
  • The line is decorative; the component sets aria-hidden="true".