Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Text Area] Add support for "auto-height" - expanding height as needed based on input length. #11678

Open
2 of 6 tasks
macandcheese opened this issue Mar 5, 2025 · 0 comments
Labels
0 - new New issues that need assignment. Calcite (design) Issues logged by Calcite designers. enhancement Issues tied to a new feature or request. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs triage Planning workflow - pending design/dev review.

Comments

@macandcheese
Copy link
Contributor

Check existing issues

Description

Currently, the Text Area height can only be controlled with min / max height css properties. There are many use cases where there is a need to increase the size of the Text Area, to grow along with user entry.

Acceptance Criteria

I'd like a configuration option for the component to handle this. I'd expect the component, in this mode, to still abide by the min and max height css properties, if set. So - for instance, it would increase in size as the user enters content, until it reaches the specified max height, after which it would scroll.

Relevant Info

No response

Which Component

Text Area

Example Use Case

Screen.Recording.2025-03-05.at.1.49.50.PM.mov

The above is a pretty fragile implementation on the user-side - using some magic numbers for expected character width and number of characters per line... but it illustrates the desired design more or less.

Priority impact

impact - p2 - want for an upcoming milestone

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/calcite-ui-icons
  • @esri/eslint-plugin-calcite-components

Esri team

Calcite (design)

@macandcheese macandcheese added 0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review. labels Mar 5, 2025
@github-actions github-actions bot added Calcite (design) Issues logged by Calcite designers. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. Calcite (design) Issues logged by Calcite designers. enhancement Issues tied to a new feature or request. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

1 participant