From 4da806af1c70a5712bb70bac64a7d86cb27642ca Mon Sep 17 00:00:00 2001 From: Fabio Roma <94720877+itsfabioroma@users.noreply.github.com> Date: Sun, 12 Feb 2023 21:22:37 -0300 Subject: [PATCH] Added support for custom classNames Just a simple line at index.d.ts that enables custom classes to be used within react --- src/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.tsx b/src/index.tsx index b016e843..254eeabe 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -22,6 +22,7 @@ export interface TextareaAutosizeProps extends Omit { onHeightChange?: (height: number, meta: TextareaHeightChangeMeta) => void; cacheMeasurements?: boolean; style?: Style; + className?: string; } const TextareaAutosize: React.ForwardRefRenderFunction<