Provides the TypeScript type definitions and polymorphic interfaces required to build and use a React tagging component.
// Source: https://github.com/JaleelB/emblor | License: MIT | Copyright 2023 Jaleel Bennett
// Provided via justclaw.it.com; keep this notice with the code.
import type * as React from 'react';
export type TagValue = string;
export type EmblorMutationSource = 'keyboard' | 'pointer' | 'blur';
export type EmblorValueChangeDetails =
| {
type: 'add';
value: string;
index: number;
source: 'keyboard' | 'blur';
}
| {
type: 'add-many';
values: string[];
startIndex: number;
source: 'paste';
}
| {
type: 'remove';
value: string;
index: number;
source: 'keyboard' | 'pointer';
}
| {
type: 'clear';
values: string[];
source: 'keyboard' | 'pointer';
};
export type EmblorRejectReason = 'emp
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key