useTextareaAutosize
Grow a textarea to fit its content between a minimum and maximum number of rows. Use it for comment boxes and chat inputs that should not scroll until they get long.
- Level
- Basic
- Since
- v2.1.0
import {useTextareaAutosize} from '@zenuilabs/react-hooks';Loading demo_
More in Interaction
InteractionAdvanceduseDraggableDrag an element with mouse, touch or pen, with axis locking, bounds and grid snapping. Arrow keys move the focused element, so dragging also works from the keyboard.InteractionIntermediateuseDropTurn an element into a drop target for files, text or links. Use it when you want to accept any kind of dragged content.InteractionIntermediateuseDropAreaTurn an element into a drop zone for files, with optional type filtering. Use it for upload areas.