UNPKG

@spaced-out/ui-design-system

Version:
38 lines 1.39 kB
import * as React from 'react'; import type { Flow } from 'flow-to-typescript-codemod'; import type { IconType } from '../Icon'; type ClassNames = Readonly<{ wrapper?: string; inputBox?: string; textarea?: string; buttonWrapper?: string; buttonIcon?: string; buttonText?: string; }>; export type PromptInputProps = { value?: string; onInputChange?: (evt: React.ChangeEvent<HTMLInputElement>, isEnter?: boolean) => unknown; onInputFocus?: (e: React.ChangeEvent<HTMLInputElement>) => unknown; onInputBlur?: (e: React.ChangeEvent<HTMLInputElement>) => unknown; onInputKeyDown?: (e: React.KeyboardEvent<HTMLInputElement>) => unknown; inputName?: string; inputDisabled?: boolean; inputPlaceholder?: string; inputLocked?: boolean; inputError?: boolean; inputErrorText?: string; helperContent?: React.ReactNode; textCountLimit?: number; classNames?: ClassNames; withPadding?: boolean; buttonText?: string; buttonDisabled?: boolean; onButtonClick?: ((arg1: React.SyntheticEvent<HTMLElement>) => unknown) | null | undefined; buttonAriaLabel?: string; isButtonLoading?: boolean; buttonIconLeftName?: string; buttonIconLeftType?: IconType; }; export declare const PromptInput: Flow.AbstractComponent<PromptInputProps, HTMLDivElement>; export {}; //# sourceMappingURL=PromptInput.d.ts.map