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
Property | Description |
---|---|
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
Property | Description |
---|---|
neighborLocation "right" | "both" | "left" | false | Determines from which side the component has neighbors |