# Axis Lock

You can use the KendoReact `drag` callbacks to implement custom logic in your React projects.

The following example implements an axis-lock, which allows users to drag only on a single axis. This restricts the `drag` either to the `horizontal` or the `vertical` axis.

[Demo Source](https://demos.telerik.com/kendo-react-ui/common/drag-and-drop/axis-lock/func/source.txt)

## Suggested Links

* [Getting Started with the KendoReact Layout Package](https://www.telerik.com/kendo-react-ui/components/layout/get-started)
* [API Reference of the `useDraggable` hook](https://www.telerik.com/kendo-react-ui/components/common/api/usedraggable)
* [API Reference of the `useDroppable` hook](https://www.telerik.com/kendo-react-ui/components/common/api/usedroppable)
* [API Reference of the `Draggable` Component](https://www.telerik.com/kendo-react-ui/components/common/api/draggable)
* [API Reference of the `Droppable` Component](https://www.telerik.com/kendo-react-ui/components/common/api/droppable)
* [API Reference of the `DragAndDrop` Component](https://www.telerik.com/kendo-react-ui/components/common/api/draganddrop)
