UNPKG

@clayui/drop-down

Version:
35 lines (34 loc) 1.08 kB
/** * SPDX-FileCopyrightText: © 2019 Liferay, Inc. <https://liferay.com> * SPDX-License-Identifier: BSD-3-Clause */ import { InternalDispatch } from '@clayui/shared'; import React from 'react'; export interface IProps extends Omit<React.HTMLAttributes<HTMLInputElement>, 'onChange'> { /** * Initial value of the input (uncontrolled). */ defaultValue?: string; /** * Props to add to form element */ formProps?: React.HTMLAttributes<HTMLFormElement>; /** * Callback for when input value changes (controlled). */ onChange?: InternalDispatch<string>; /** * Path to the location of the spritemap resource. */ spritemap?: string; /** * Props to add to the button component. */ submitProps?: React.HTMLAttributes<HTMLButtonElement>; /** * Current value of the input (controlled). */ value?: string; } declare const Search: ({ className, defaultValue, formProps, onChange, spritemap, submitProps, value: valueProp, ...otherProps }: IProps) => JSX.Element; export default Search;