stone-kit
Version:
uikit for redesign
29 lines (28 loc) • 936 B
TypeScript
import { default as React, InputHTMLAttributes, ReactNode } from 'react';
type inputWidth = 'auto' | 'full';
export declare const INPUT_VARIANTS: {
light: string;
dark: string;
gray: string;
transparent: string;
};
export type inputVariant = keyof typeof INPUT_VARIANTS;
type inputSizes = 'large' | 'medium' | 'small' | 'tiny';
interface InputProps {
size_s?: inputSizes;
size_m?: inputSizes;
size_l?: inputSizes;
pre?: ReactNode;
error?: boolean;
post?: ReactNode;
children?: ReactNode;
variant?: inputVariant;
width?: inputWidth;
additionalClass?: string;
isPhoneIMask?: boolean;
}
export type IInputProps = InputHTMLAttributes<HTMLInputElement> & InputProps;
export declare const Input: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & InputProps & {
children?: ReactNode | undefined;
} & React.RefAttributes<HTMLInputElement>>;
export {};