NeighborLocation
Root wrapper-component doesn't create a node but provides a context for defining neighbors.
jsx
import NeighborLocation from 'intergalactic/neighbor-location';
<NeighborLocation />;
import NeighborLocation from 'intergalactic/neighbor-location';
<NeighborLocation />;
NeighborLocationProps
Name | Type | Description |
---|---|---|
controlsLength | number | Number of elements in a group |
NeighborLocation.Detect
Component for detect neighbors.
jsx
import NeighborLocation from 'intergalactic/neighbor-location';
<NeighborLocation.Detect />;
import NeighborLocation from 'intergalactic/neighbor-location';
<NeighborLocation.Detect />;
NeighborItemProps
Name | Type | Description |
---|---|---|
neighborLocation | "right" | "both" | "left" | false | Determines from which side the component has neighbors |