MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isTextDropItem

Function isTextDropItem

packages/react-aria/src/dnd/utils.ts:363–365  ·  view source on GitHub ↗
(dropItem: DropItem)

Source from the content-addressed store, hash-verified

361
362/** Returns whether a drop item contains text data. */
363export function isTextDropItem(dropItem: DropItem): dropItem is TextDropItem {
364 return dropItem.kind === 'text';
365}
366
367/** Returns whether a drop item is a file. */
368export function isFileDropItem(dropItem: DropItem): dropItem is FileDropItem {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected