import React, { FunctionComponent, InputHTMLAttributes } from 'react';
import { getClassName } from '../../helpers/getClassName';
import { classNames } from '../../lib/classNames';
import FormField from '../FormField/FormField';
import { HasAlign, HasRef, HasRootRef } from '../../types';
import { withAdaptivity, AdaptivityProps } from '../../hoc/withAdaptivity';
import { usePlatform } from '../../hooks/usePlatform';
export interface InputProps extends
InputHTMLAttributes,
HasRef,
HasRootRef,
HasAlign,
AdaptivityProps {}
const Input: FunctionComponent = ({
align,
getRef,
className,
getRootRef,
sizeY,
style,
...restProps
}: InputProps) => {
const platform = usePlatform();
return (
);
};
Input.defaultProps = {
type: 'text',
};
export default withAdaptivity(Input, {
sizeY: true,
});