UNPKG

@trussworks/react-uswds

Version:
21 lines (20 loc) 808 B
import { default as React, JSX } from 'react'; import { OptionalFormProps } from '../../forms/Form/Form'; import { OptionalTextInputProps } from '../../forms/TextInput/TextInput'; type SearchLocalization = { buttonText: string; }; export type SearchProps = { onSubmit: (event: React.FormEvent<HTMLFormElement>) => void; size?: 'big' | 'small'; className?: string; inputName?: string; inputId?: string; placeholder?: string; label?: React.ReactNode; i18n?: SearchLocalization; buttonAriaLabel?: string; inputProps?: OptionalTextInputProps; } & OptionalFormProps; export declare const Search: ({ onSubmit, size, className, placeholder, inputName, label, inputId, i18n, buttonAriaLabel, inputProps, ...formProps }: SearchProps) => JSX.Element; export default Search;