Skip to content

Commit 4da806a

Browse files
authored
Added support for custom classNames
Just a simple line at index.d.ts that enables custom classes to be used within react
1 parent 0d82f52 commit 4da806a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export interface TextareaAutosizeProps extends Omit<TextareaProps, 'style'> {
2222
onHeightChange?: (height: number, meta: TextareaHeightChangeMeta) => void;
2323
cacheMeasurements?: boolean;
2424
style?: Style;
25+
className?: string;
2526
}
2627

2728
const TextareaAutosize: React.ForwardRefRenderFunction<

0 commit comments

Comments
 (0)