@redocly/theme
Version:
Shared UI components lib
14 lines (13 loc) • 546 B
TypeScript
import React from 'react';
export type SearchInputProps = {
placeholder?: string;
value: string;
onChange: (value: string) => void;
inputRef?: React.RefObject<HTMLInputElement>;
isLoading: boolean;
showReturnButton?: boolean;
onReturn?: () => void;
onSubmit?: (evt: React.KeyboardEvent<HTMLInputElement>) => void;
className?: string;
};
export declare function SearchInput({ placeholder, value, onChange, isLoading, showReturnButton, inputRef, onReturn, onSubmit, className, }: SearchInputProps): JSX.Element;