@primer/react
Version:
An implementation of GitHub's Primer Design System using React
31 lines (30 loc) • 1.02 kB
TypeScript
import { TextInputProps } from "../TextInput/TextInput.js";
import React from "react";
//#region src/FilteredActionList/FilteredActionListInput.d.ts
interface FilteredActionListInputProps extends Partial<Omit<TextInputProps, 'onChange' | 'onKeyDown'>> {
inputRef: React.RefObject<HTMLInputElement | null>;
onInputChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
onInputKeyPress?: React.KeyboardEventHandler<HTMLInputElement>;
onInputKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
placeholderText?: string;
listId: string;
inputDescriptionTextId: string;
loading: boolean;
fullScreenOnNarrow?: boolean;
}
declare function FilteredActionListInput({
inputRef,
value,
onInputChange,
onInputKeyPress,
onInputKeyDown,
placeholderText,
listId,
inputDescriptionTextId,
loading,
fullScreenOnNarrow,
className,
...restTextInputProps
}: FilteredActionListInputProps): React.JSX.Element;
//#endregion
export { FilteredActionListInput, FilteredActionListInputProps };