@firecms/ui
Version:
Awesome Firebase/Firestore-based headless open-source CMS
27 lines (26 loc) • 931 B
TypeScript
import React from "react";
interface SearchBarProps {
onClick?: () => void;
onTextSearch?: (searchString?: string) => void;
placeholder?: string;
expandable?: boolean;
/**
* Size of the search bar.
* - "small": 32px height (matches TextField small)
* - "medium": 44px height (matches TextField medium)
* @default "medium"
*/
size?: "small" | "medium";
/**
* @deprecated Use size="medium" or size="small" instead. This prop will be removed in a future version.
*/
large?: boolean;
innerClassName?: string;
className?: string;
autoFocus?: boolean;
disabled?: boolean;
loading?: boolean;
inputRef?: React.Ref<HTMLInputElement>;
}
export declare function SearchBar({ onClick, onTextSearch, placeholder, expandable, size, large, innerClassName, className, autoFocus, disabled, loading, inputRef }: SearchBarProps): React.JSX.Element;
export {};