Skip to main content

Handle

Function Handle 

Source
pub fn Handle(_: HandleProps) -> Element
Expand description

A connection point on a node. Place handles anywhere inside a custom node view; edges anchor to them and new connections can be dragged out of them.

ยงProps

For details, see the props struct definition.

  • kind : HandleKind

    Whether edges start (Source) or end (Target) here.

  • position : ReadSignal<Side>

    Which side of the node the handle sits on.

  • id : Option<String>

    Optional handle id, referenced by Edge::source_handle / Edge::target_handle. Needed when a node has multiple handles of the same kind.

  • offset : f64

    Fraction (0..=1) along the side, defaults to centered.

  • class : Option<String>

    Extra classes (e.g. Tailwind utilities) for the handle dot.