Enhance Input Component: Add Resizable TextArea with Auto-Grow and Scroll Support#1037
Enhance Input Component: Add Resizable TextArea with Auto-Grow and Scroll Support#1037Copilot wants to merge 6 commits into
Conversation
|
Great job, no security vulnerabilities found in this Pull Request |
|
|
... Fixed the TypeScript compilation errors by updating the |
|
Make sure to run |
Fixed the SCSS syntax error by replacing invalid |
|
@copilot rebase your changes with the master branch |
Successfully rebased the branch with the latest master commits. The rebase completed without conflicts and all previous fixes (TypeScript compilation errors and SCSS syntax errors) have been preserved. Commit: 29ddbf5 Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
fa5532c to
e6015d8
Compare
…pport Co-authored-by: lucasoares <10624972+lucasoares@users.noreply.github.com>
…ase handling Co-authored-by: lucasoares <10624972+lucasoares@users.noreply.github.com>
Co-authored-by: lucasoares <10624972+lucasoares@users.noreply.github.com>
…usage with proper compound selector Co-authored-by: lucasoares <10624972+lucasoares@users.noreply.github.com>
e6015d8 to
008f92c
Compare
|
will be fixed by #1046 |

This PR implements a comprehensive textarea resize enhancement for the Input component, adding three key features to improve user experience when working with text areas.
🎯 Features Added
1. Auto-Grow Functionality
2. Manual Resize Support
resizable={true}3. Max Height with Scroll
maxHeight, vertical scrollbar appears'300px','10em', or numeric values🔧 New Props
resizablebooleanfalseautoGrowbooleanfalsemaxHeightstringundefined💡 Usage Examples
🧠 Smart Behavior
autoGrowandresizableare enabled, auto-grow takes priorityrequestAnimationFramefor smooth updatesmaxHeightonly applies whenautoGrowis enabled🎨 CSS Enhancements
.input__container__text--resizableclass for manual resize styling.input__container__text--auto-growclass for auto-grow behavior✅ Testing
This implementation provides the intuitive and flexible text input experience requested in the issue, eliminating the feeling of limited space and reducing premature scrolling while offering users control over their input area size.
Fixes #1036.
Warning
Firewall rules blocked me from connecting to one or more addresses
I tried to connect to the following addresses, but was blocked by firewall rules:
https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/1002410/chrome-linux.zipnode install.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.