infinity-ui-elements
Version:
A React TypeScript component library with Tailwind CSS design system
31 lines • 1.24 kB
TypeScript
import * as React from "react";
declare const textAreaVariants: (props?: ({
size?: "medium" | "large" | "small" | null | undefined;
validationState?: "none" | "positive" | "negative" | null | undefined;
isDisabled?: boolean | null | undefined;
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
export interface TextAreaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "size"> {
label?: string;
helperText?: string;
errorText?: string;
successText?: string;
size?: "small" | "medium" | "large";
validationState?: "none" | "positive" | "negative";
isDisabled?: boolean;
isRequired?: boolean;
isOptional?: boolean;
maxChar?: number;
showCharCount?: boolean;
containerClassName?: string;
labelClassName?: string;
textAreaClassName?: string;
infoHeading?: string;
infoDescription?: string;
linkText?: string;
linkHref?: string;
onLinkClick?: (e: React.MouseEvent<HTMLAnchorElement>) => void;
rows?: number;
}
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
export { TextArea, textAreaVariants };
//# sourceMappingURL=TextArea.d.ts.map