Skip to content

feat(text-area): allow to fix the height of the component despite the number of entered lines#1329

Open
paulinea wants to merge 5 commits into
developfrom
1328-for-text-area-component-add-flag-to-enable-or-disable-the-component-expansion
Open

feat(text-area): allow to fix the height of the component despite the number of entered lines#1329
paulinea wants to merge 5 commits into
developfrom
1328-for-text-area-component-add-flag-to-enable-or-disable-the-component-expansion

Conversation

@paulinea

@paulinea paulinea commented May 26, 2026

Copy link
Copy Markdown
Member

No description provided.

@github-actions

github-actions Bot commented May 26, 2026

Copy link
Copy Markdown

* @param outputTransformation An optional [OutputTransformation] that transforms how the contents of the text field are presented.
* @param interactionSource An optional hoisted [MutableInteractionSource] for observing and emitting [Interaction]s for this text area. Note that if `null`
* is provided, interactions will still happen internally.
* @param fixedHeight Controls the height behavior of the text area. When `true`, the height is fixed and will not expand as text is entered. Otherwise, the

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Figma's overview, the documentation talks about "Auto-resize". Should we rename this parameter to autoResize for consistency?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. I didn't see Maxime's update.

val helperLink: OudsTextInputHelperLink? = null
)

internal data class OudsTextAreaMultiLineValuePreviewParameter(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class is unused and can be removed.

theme: OudsThemeContract,
lineCount: Int
fixedHeight: Boolean
) = OudsPreview(modifier = Modifier.padding(all = PreviewPaddingDefault), theme = theme) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if the name of the preview should be PreviewOudsTextAreaMultiLineValue or PreviewOudsTextAreaFixedHeight, in order to be consistent with PreviewOudsTextAreaConstrainedMaxWidth. What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

For text area component, add flag to enable or disable the component expansion

2 participants