# TagDragEvent (@salmonui/buttons/tag-group)

> The TagDragEvent interface of @salmonui/buttons/tag-group: onTagDrag event, at most once per animation frame.

Canonical: https://salmonui.dev/docs/reference/buttons/tag-group/TagDragEvent

```ts
import type { TagDragEvent } from '@salmonui/buttons/tag-group';
```

Entry index: https://salmonui.dev/docs/reference/buttons/tag-group (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/buttons/tag-group.md).

## Reference

Kind: interface

```ts
interface TagDragEvent {
    readonly values: readonly string[];
    readonly clientX: number;
    readonly clientY: number;
    readonly toIndex: number | null;
    readonly overGroup: string | null;
}
```

`onTagDrag` event, at most once per animation frame.

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `values` | `readonly values: readonly string[];` |  |  |
| `clientX` | `readonly clientX: number;` |  |  |
| `clientY` | `readonly clientY: number;` |  |  |
| `toIndex` | `readonly toIndex: number \| null;` |  | Insertion index in the group under the pointer, or null outside any accepting group. |
| `overGroup` | `readonly overGroup: string \| null;` |  | `dragGroup` of the group under the pointer (null outside, or a group without one). |
