Skip to main content

Variable: ZIndexLayer

@arolariu/components


@arolariu/components / ZIndexLayer

Variable: ZIndexLayer

ZIndexLayer: (zIndex) => ReactNode

Defined in: components/ui/chart.tsx:618

A layer that renders its children into a portal corresponding to the given zIndex. We can't use regular CSS z-index because SVG does not support it. So instead, we create separate DOM nodes for each zIndex layer and render the children into the corresponding DOM node using React portals.

This component must be used inside a Chart component.

Parameters

zIndex

ZIndexLayerProps

numeric zIndex value, higher values are rendered on top of lower values

Returns

ReactNode

Since

3.4

// was this page useful?