Skip to main content

Interface: LinkLabelProps

Defined in: diagram/linkLayer.tsx:419

Props for LinkLabel component.

See

LinkLabel

Properties

PropertyTypeDescription

children?

ReactNode

Content for the label.

This content is rendered in the normal HTML context, unlike the link itself.

className?

string

Additional CSS class for the component.

line?

number

Vertical row shift for the label (e.g. -1 for one row above, 1 for one row below).

Default

0

link

Link

Owner link to display label over.

position

Vector

Label position in paper coordinates.

primary?

boolean

Whether the label should be considered as primary one for the link.

Primary label bounds are available via RenderingState.getLinkLabelBounds.

style?

CSSProperties

Additional CSS styles for the component.

textAnchor?

"end" | "start" | "middle"

Label text alignment relative to its position.

Default

"middle"

title?

string

Title for the label.