UNPKG

@etsoo/materialui

Version:

TypeScript Material-UI Implementation

42 lines (41 loc) 860 B
import React from "react"; /** * Search bar props */ export interface SearchBarProps { /** * 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;