Skip to content

NeighborLocation

Utils 🛠
3.1.24

NeighborLocation

Root wrapper-component does not create a node but provides a context for defining neighbors.

import NeighborLocation from '@semcore/ui/neighbor-location';

<NeighborLocation />;
interface
INeighborLocationProps
PropertyDescription
tag
React.ElementType | string = div

HTML tag name for the displayed item

controlsLength
number

Number of elements in a group

NeighborLocation.Detect

Component for detect neighbors.

import NeighborLocation from '@semcore/ui/neighbor-location';

<NeighborLocation.Detect />;
interface
INeighborItemProps
PropertyDescription
neighborLocation
"right" | "both" | "left" | false

Determines from which side the component has neighbors