UNPKG

@redocly/theme

Version:

Shared UI components lib

15 lines (14 loc) 587 B
import React from 'react'; import type { JSX } from 'react'; export type SearchInputProps = { placeholder?: string; value: string; onChange: (value: string) => void; inputRef?: React.RefObject<HTMLInputElement | null>; 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;