UNPKG

@buun_group/brutalist-ui

Version:
21 lines (20 loc) 807 B
/** * @module Textarea * @description An enhanced textarea component with auto-resize capabilities and character counting. Supports all native textarea attributes. */ import React, { TextareaHTMLAttributes } from 'react'; export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size'> { variant?: 'default' | 'error' | 'success'; size?: 'sm' | 'md' | 'lg'; autoResize?: boolean; showCharacterCount?: boolean; maxCharacters?: number; minRows?: number; maxRows?: number; fullWidth?: boolean; brutalistShadow?: boolean; width?: string | number; minWidth?: string | number; maxWidth?: string | number; } export declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;