UNPKG

@guruhotel/aura-ui

Version:

⚛️ React UI library by GuruHotel

15 lines (14 loc) 1.2 kB
import React from "react"; import { CSS, VariantProps } from "../theme"; import { StyledInput, StyledInputLeftAddon, StyledInputLeftElement, StyledInputRightAddon, StyledInputRightElement } from "./input.styles"; declare type HTMLAttributes<T> = React.HTMLAttributes<T> & React.RefAttributes<T>; declare type InputComponentVariants<T> = VariantProps<T> & { css?: CSS; }; export declare type InputProps = Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "size"> & React.RefAttributes<HTMLInputElement> & InputComponentVariants<typeof StyledInput>; export declare type InputLeftAddonProps = HTMLAttributes<HTMLDivElement> & InputComponentVariants<typeof StyledInputLeftAddon>; export declare type InputLeftElementProps = HTMLAttributes<HTMLDivElement> & InputComponentVariants<typeof StyledInputLeftElement>; export declare type InputRightAddonProps = HTMLAttributes<HTMLDivElement> & InputComponentVariants<typeof StyledInputRightAddon>; export declare type InputRightElementProps = HTMLAttributes<HTMLDivElement> & InputComponentVariants<typeof StyledInputRightElement>; export declare type InputGroupChilds = React.ReactElement<InputProps>; export {};