Skip to main content
ShapeComponentProps
NameTypeDescription
dataObjectDataBacking data for the vertex. Required. This is passed in as a prop to a component used to render a node/group, so you can pass it straight through from the parent to this component.
font?FontSpecOptional font size/style.
labelPosition?LabelPositionDefaults to "center". Use "top" or "bottom" to set the label above or below the shape.
labelProperty?stringThe name of the property containing each vertex's label. Defaults to label.
labelStrokeWidthstringStroke width to use on the text element rendering a label. Defaults to "0.25px".
showLabels?booleanWhether or not to show labels on each shape. Defaults to false.