@neuctra/ui
Version:
A modern, responsive, customizable React UI component library powered by Tailwind CSS and Vite.
30 lines (29 loc) • 952 B
TypeScript
import { default as React, CSSProperties } from 'react';
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
label?: string;
icon?: React.ElementType;
error?: boolean;
success?: boolean;
helperText?: string;
maxLength?: number;
/** Auto resize */
autoResize?: boolean;
minRows?: number;
maxRows?: number;
/** Chat-like behavior */
submitOnEnter?: boolean;
onSubmit?: () => void;
/** Customization */
className?: string;
containerClassName?: string;
labelClassName?: string;
iconClassName?: string;
helperClassName?: string;
countClassName?: string;
style?: CSSProperties;
containerStyle?: CSSProperties;
labelStyle?: CSSProperties;
helperStyle?: CSSProperties;
countStyle?: CSSProperties;
}
export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;