Skip to content

neighborLocation

WARNING

🚨 NeighborLocation wrapper component is deprecated and will be removed in the next releases, due to the unreliability of the API and the unpredictability of neighbor detection, especially in React 18's parallel render.

Use the neighborLocation component property instead.

NeighborLocation ​

Root wrapper-component doesn't create a node but provides a context for defining neighbors.

jsx
import NeighborLocation from '@semcore/ui/base-components';

<NeighborLocation />;

NeighborLocationProps

NameTypeDescription
controlsLengthnumber Number of elements in a group

NeighborLocation.Detect ​

Component for detect neighbors.

jsx
import NeighborLocation from '@semcore/ui/base-components';

<NeighborLocation.Detect />;

NeighborItemProps

NameTypeDescription
neighborLocation | false Determines from which side the component has neighbors

Released under the MIT License.

Released under the MIT License.