# KanbanDropTarget (@salmonui/kanban)

> The KanbanDropTarget interface of @salmonui/kanban: An external drop target: an element outside the board that accepts cards.

Canonical: https://salmonui.dev/docs/reference/kanban/KanbanDropTarget

```ts
import type { KanbanDropTarget } from '@salmonui/kanban';
```

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

## Reference

Kind: interface

```ts
interface KanbanDropTarget<T> {
    readonly ref: RefObject<Element | null>;
    accept?(cards: readonly T[]): boolean;
    onDrop(event: KanbanExternalDropEvent<T>): void;
}
```

An external drop target: an element outside the board that accepts cards.

Members (3):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `ref` | `readonly ref: RefObject<Element \| null>;` |  |  |
| `accept` | `accept?(cards: readonly T[]): boolean;` | optional | Accepts or refuses the dragged cards (default: accepts). |
| `onDrop` | `onDrop(event: KanbanExternalDropEvent<T>): void;` |  | `preventDefault()` keeps the cards on the board; otherwise they are removed (a `delete` write). |
