frame

Arrow

Dashed arrow between flow nodes. `stretch` spans the available row.

Install

pnpm add @fractaldesign/machines-ui
import '@fractaldesign/machines-ui/style.css';
import { GraphArrow } from '@fractaldesign/machines-ui';

Preview

[ ARROW ]
build ship
<GraphArrow />
[ ARROW ]
build ship
<GraphArrow accent stretch />

Props

PropTypeDefaultDescription
accent boolean falseDraw the arrow in the theme accent colour instead of the border colour.
stretch boolean falseSpan the available row with a flexing dashed line instead of a fixed `- - -`.
class string ''

API

  • class forwarded to the outer element

Theming

CSS custom properties this component reads.

  • --border
  • --graph-accent

Related

Used by

src/lib/components/frame/GraphArrow.svelte

machines-ui