@etsoo/materialui
Version:
TypeScript Material-UI Implementation
46 lines (45 loc) • 961 B
TypeScript
import React from "react";
/**
* Search bar props
*/
export interface SearchBarProps {
/**
* Auto submit delay miliseconds, default is 100ms
*/
autoSubmitDelay?: number;
/**
* Style class name
*/
className?: string;
/**
* Item gap
*/
itemGap?: number;
/**
* Item width
*/
itemWidth?: number;
/**
* Fields
*/
fields: React.ReactElement[];
/**
* On submit callback
*/
onSubmit: (data: FormData, reset: boolean) => void | PromiseLike<void>;
/**
* Top position, true means Toolbar's height
*/
top?: number | true;
/**
* Width
*/
width: number;
}
/**
* Search bar
* Make sure its container's width is fixed, not fluid, like "<Container fixed><SearchBar ../></Container>"
* @param props Props
* @returns Component
*/
export declare function SearchBar(props: SearchBarProps): import("react/jsx-runtime").JSX.Element;