UNPKG

stone-kit

Version:
25 lines (23 loc) 669 B
import { default as React, ReactNode } from 'react'; type inputWidth = 'auto' | 'full'; export declare const INPUT_VARIANTS: { light: string; dark: string; gray: 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; } export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>; export {};