{"id":17332298,"url":"https://github.com/codedealer/streamlit-textarea-autosize","last_synced_at":"2026-03-19T00:51:37.353Z","repository":{"id":82831565,"uuid":"535797073","full_name":"codedealer/streamlit-textarea-autosize","owner":"codedealer","description":"Textarea with autosizing for Streamlit","archived":false,"fork":false,"pushed_at":"2022-09-17T22:42:18.000Z","size":670,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"vue3","last_synced_at":"2025-03-27T06:27:58.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codedealer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-12T18:22:01.000Z","updated_at":"2022-09-12T18:22:08.000Z","dependencies_parsed_at":"2023-03-04T19:45:34.551Z","dependency_job_id":null,"html_url":"https://github.com/codedealer/streamlit-textarea-autosize","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":"codedealer/streamlit-component-template-vue","purl":"pkg:github/codedealer/streamlit-textarea-autosize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedealer%2Fstreamlit-textarea-autosize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedealer%2Fstreamlit-textarea-autosize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedealer%2Fstreamlit-textarea-autosize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedealer%2Fstreamlit-textarea-autosize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codedealer","download_url":"https://codeload.github.com/codedealer/streamlit-textarea-autosize/tar.gz/refs/heads/vue3","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codedealer%2Fstreamlit-textarea-autosize/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260103186,"owners_count":22959052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T14:57:15.853Z","updated_at":"2026-01-30T08:03:36.000Z","avatar_url":"https://github.com/codedealer.png","language":"Vue","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Textarea with automatic resize for Streamlit\n\n[Check out Streamlit here](https://streamlit.io/)\n\nThis component behaves like a simple text_input but automatically resizes when new lines are added.\n\nAdditionally it can support **submit in forms** although the use of this feature is discouraged because it goes against Streamlit design paradigm.\n\n## Setup\n\n\nCurrently there is no pip package so install directly from this repo:\n\n```\n$ pip install git+https://github.com/codedealer/streamlit-textarea-autosize.git#egg=streamlit_textarea_autosize\n```\n\n## Usage\n\nThe simple usage is similar to the vanilla component:\n```\nfrom streamlit_textarea_autosize import textarea_autosize\n\nvalue = textarea_autosize(\"Simple autosize input\", \"\")\n```\n\nFull list of arguments:\n```\nlabel=\"\",\nvalue=\"\",\nkey=None,\nmax_height=None, # integer\nmin_height=None, # integer\nrows=\"1\",\ntext_area_class=\"\",\nlabel_class=\"\",\nplaceholder=\"\",\nsubmit_form=False\n```\n\n### Styling\n\nThe component tries to mimic the default style of Streamlit inputs respecting light/dark themes but you can extend it by providing classes for the label and the textarea: `label_class`, `text_area_class`.\n\n### Form submission\n\nYou can include this component inside a form and set `submit_form=True`. The behavior of the textarea will change: it will add a new line on CTRL+ENTER and submit the form on ENTER just as if you clicked submit button. This behavior is achieved by a hack escaping iframe and is **not guaranteed** to work. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedealer%2Fstreamlit-textarea-autosize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodedealer%2Fstreamlit-textarea-autosize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodedealer%2Fstreamlit-textarea-autosize/lists"}