import { ChangeEventHandler, FormEventHandler } from "react"; import classNames from "classnames"; const SIZE = ["m", "l"] as const; type Props = { className?: string; value?: string; size?: (typeof SIZE)[number]; onChange?: ChangeEventHandler; placeholder?: string; autoFocus?: boolean; onSubmit?: FormEventHandler; }; export const VuiSearchInput = ({ className, size = "m", value, onChange, placeholder, autoFocus, onSubmit, ...rest }: Props) => { const classes = classNames("vuiSearchInput", `vuiSearchInput--${size}`, className); return (
); };