useTextareaAutoSize

resizes a text area to always fit the content

Demo

Usage

const const ref: Kaioken.RefObject<HTMLTextAreaElement>ref = useRef<HTMLTextAreaElement>(initialValue: HTMLTextAreaElement | null): Kaioken.RefObject<HTMLTextAreaElement> (+2 overloads)useRef<HTMLTextAreaElement>(null)
const 
const controls: {
    update: () => void;
}
controls
=
function useTextareaAutoSize(ref: Kaioken.MutableRefObject<HTMLTextAreaElement | null>, options?: TextAreaResizeOptions): {
    update: () => void;
}
useTextareaAutoSize
(const ref: Kaioken.RefObject<HTMLTextAreaElement>ref)