Skip to content

NeighborLocation

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

NameTypeDescription
controlsLengthnumberNumber 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

NameTypeDescription
neighborLocation"right" | "both" | "left" | falseDetermines from which side the component has neighbors

Released under the MIT License.

Released under the MIT License.