UNPKG

@smart-react-components/ui

Version:
33 lines (32 loc) 1.45 kB
import { ChangeEvents } from '@smart-react-components/core/element-props/change-events'; import { FocusEvents } from '@smart-react-components/core/element-props/focus-events'; import { IntrinsicStyledCoreProps } from '@smart-react-components/core/element-props/intrinsic-styled-core-props'; import { KeyboardEvents } from '@smart-react-components/core/element-props/keyboard-events'; import { ContentElement, JSXElementProps, PaletteProp, Partial, ResponsiveProp, SetState, ShapeProp, SizeProp } from '@smart-react-components/core/types'; import React from 'react'; import { InputType } from '../types'; export interface Props extends Partial<ResponsiveProp<'size', SizeProp>>, IntrinsicStyledCoreProps, ChangeEvents, FocusEvents, KeyboardEvents { containerProps?: JSXElementProps; defaultValue?: string; hasBorder?: boolean; hasSpellCheck?: boolean; inputProps?: JSXElementProps; isBlock?: boolean; isDisabled?: boolean; isOutline?: boolean; isReadOnly?: boolean; isRequired?: boolean; isSoft?: boolean; label?: ContentElement; leftAddon?: ContentElement; palette?: PaletteProp; placeholder?: string; rightAddon?: ContentElement; setValue?: SetState<string>; shape?: ShapeProp; template?: JSX.Element; type?: InputType; value?: string; } declare const Input: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>; export default Input;