UNPKG

stone-kit

Version:
27 lines (25 loc) 722 B
import { default as React, 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 ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>; export {};