@activecollab/components
Version:
ActiveCollab Components
17 lines • 776 B
TypeScript
import React, { ReactNode, Ref, InputHTMLAttributes } from "react";
import { InputMode, InputSize } from "./types";
import { ITypographyProps } from "../Typography/Typography";
export interface OverrideProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "ref"> {
/** Velicina inputa koja definse font-size i border radius */
size?: InputSize;
}
export interface InputProps extends OverrideProps, Pick<ITypographyProps, "align"> {
invalid?: boolean;
startAdornment?: ReactNode;
endAdornment?: ReactNode;
wrapRef?: Ref<HTMLDivElement>;
mode?: InputMode;
wrapperClick?: () => void;
}
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
//# sourceMappingURL=Input.d.ts.map