@guardian/threads
Version:
11 lines (10 loc) • 476 B
TypeScript
import { KeyboardEventHandler } from 'react';
import { Chip, ChipProps } from './Chip';
export declare abstract class InputChip<P extends ChipProps, S = {}> extends Chip<P, S> {
protected textInput: HTMLInputElement | null;
protected setTextInputRef: (r: HTMLInputElement | null) => HTMLInputElement | null;
focus: (focusEnd: boolean) => void;
focusAt: (offset: number) => void;
select: () => void;
onKeyDown: KeyboardEventHandler<HTMLInputElement>;
}