Skip to content

st.chat_input doesn't support "new line" btn on the keyboard #14944

@el-ibrahim-mohamed

Description

@el-ibrahim-mohamed

Checklist

  • I have searched the existing issues for similar feature requests.
  • I added a descriptive title and summary to this issue.

Summary

When typing text in st.chat_input, it should support the new line keyboard button instead of the "enter" button.

Why?

This will help users make new lines and prevent accidental submissions in mobile use.

How?

Maybe a parameter to use the "new line" button instead or always use it

Additional Context

This would be like st.text_area

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature:st.chat_inputRelated to the `st.chat_input` widgettype:enhancementRequests for feature enhancements or new features

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions