UNPKG

react-wired-elements

Version:

Wired Elements as React components. TypeScript types included.

32 lines (31 loc) 977 B
import * as React from 'react'; import { BaseProps } from './types'; export interface WiredSearchInputProps extends BaseProps { /** * Placeholder text for the input. */ placeholder?: string; /** * Disable the input. * @default false */ disabled?: boolean; /** * The value of the input. * @default "text" */ value?: string; /** * Event that fires any time the input text is changed. */ onChange?(e: React.ChangeEvent<HTMLInputElement>): void; /** * Event that fires any time the input is blurred. */ onBlur?(e: React.ChangeEvent<HTMLInputElement>): void; /** * Event that fires any time the input is focused. */ onFocus?(e: React.ChangeEvent<HTMLInputElement>): void; } export declare const WiredSearchInput: ({ placeholder, disabled, value, onChange, onBlur, onFocus, className, style, }: WiredSearchInputProps) => JSX.Element;