Shrink ’n’ grow your textareas
The update adds a new feature to automatically resize your textarea vertically as its content changes.
ta := textarea.New()
ta.DynamicHeight = true // Enable dynamic resizing
ta.MinHeight = 3 // Minimum visible rows
ta.MaxHeight = 10 // Maximum visible rows
ta.MaxContentHeight = 20 // Maximum rows of contentPiece of cake, right?
Enjoy! 💘
Changelog
New!
- f1daacf: feat(textarea): dynamic height (#910) (@meowgorithm)
Thoughts? Questions? We love hearing from you. Feel free to reach out on X, Discord, Slack, The Fediverse, Bluesky.
