Skip to content

Commit a50c82f

Browse files
docs: added onDragMove prop to docs (#325)
This pull request includes updates to the documentation for `flex` and `grid` components to include details about the `onDragMove` callback. Co-authored-by: Mateusz Łopaciński <lop.mateusz.2001@gmail.com>
1 parent da31de6 commit a50c82f

2 files changed

Lines changed: 50 additions & 0 deletions

File tree

packages/docs/docs/flex/props.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,31 @@ type OrderChangeParams = {
755755

756756
---
757757

758+
### onDragMove
759+
760+
Called when the drag gesture moves.
761+
762+
| type | default | required |
763+
| ------------------ | ------- | -------- |
764+
| `DragMoveCallback` | NO | NO |
765+
766+
<details>
767+
<summary>Type definitions</summary>
768+
769+
```tsx
770+
type DragMoveCallback = (params: DragMoveParams) => void;
771+
772+
type DragMoveParams = {
773+
key: string;
774+
fromIndex: number;
775+
touchData: TouchData;
776+
};
777+
```
778+
779+
</details>
780+
781+
---
782+
758783
## Other Settings
759784

760785
### strategy

packages/docs/docs/grid/props.mdx

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -638,6 +638,31 @@ type OrderChangeParams = {
638638

639639
---
640640

641+
### onDragMove
642+
643+
Called when the drag gesture moves.
644+
645+
| type | default | required |
646+
| ------------------ | ------- | -------- |
647+
| `DragMoveCallback` | NO | NO |
648+
649+
<details>
650+
<summary>Type definitions</summary>
651+
652+
```tsx
653+
type DragMoveCallback = (params: DragMoveParams) => void;
654+
655+
type DragMoveParams = {
656+
key: string;
657+
fromIndex: number;
658+
touchData: TouchData;
659+
};
660+
```
661+
662+
</details>
663+
664+
---
665+
641666
## Other Settings
642667

643668
### strategy

0 commit comments

Comments
 (0)