@joint/react
    Preparing search index...

    Function HTMLBox

    • Renders a graph element as a pre-styled HTML box. Reach for this inside <Paper renderElement={...}> when you want elements that already look good without writing any CSS.

      Wraps HTMLHost and adds the jj-box class, which themes the box through --jj-box-* CSS variables (background, border, radius, padding, font). Like HTMLHost, it measures its content and syncs the size back to the element by default; set useModelGeometry to size it from the model instead. All props reach the underlying HTMLHost; className is merged with the jj-box class and style is layered on top of the default box styling, while the rest pass through unchanged. Use HTMLHost directly when you want a blank host with no default styling.

      Parameters

      Returns ReactNode

      import { Paper, HTMLBox } from '@joint/react';

      // Each element renders as a ready-styled box showing its label.
      <Paper renderElement={({ label }) => <HTMLBox>{label}</HTMLBox>} />