UNPKG

@vectara/vectara-ui

Version:

Vectara's design system, codified as a React and Sass component library

21 lines (20 loc) 684 B
import { ChangeEventHandler, FormEventHandler } from "react"; declare const SIZE: readonly ["m", "l"]; type Props = { className?: string; value?: string; size?: (typeof SIZE)[number]; onChange?: ChangeEventHandler<HTMLInputElement>; placeholder?: string; autoFocus?: boolean; onSubmit?: FormEventHandler; }; type ClearableProps = { isClearable?: true; onClear: () => void; } | { isClearable?: false; onClear?: never; }; export declare const VuiSearchInput: ({ className, size, value, onChange, placeholder, autoFocus, onSubmit, isClearable, onClear, ...rest }: Props & ClearableProps) => import("react/jsx-runtime").JSX.Element; export {};