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
| Name | Type | Description |
|---|---|---|
| controlsLength | number | Number of elements in a group |
NeighborLocation.Detect ​
Component for detect neighbors.
jsx
import NeighborLocation from '@semcore/ui/base-components';
<NeighborLocation.Detect />;NeighborItemProps
| Name | Type | Description |
|---|---|---|
| neighborLocation | | false | Determines from which side the component has neighbors |