Skip to main content

Streamlit's DropFillTextarea lets users drag and drop files onto a text area, filling in text quickly. It populates text areas with pre-existing files, reducing manual input, while offering layout customization. Ideal for simplifying workflows for both developers and users.

Project description

streamlit-component-dropfilltextarea

Streamlit Component DropFillTextarea allows you to drag and drop files onto a text area, making it easy to fill in large amounts of text quickly. With dropfill_textarea, users can quickly populate text areas with pre-existing text files, reducing manual input and increasing efficiency. The component also offers flexible layout options, allowing users to customize the label and text area's size, position, and other properties. Whether you're a developer or a user, dropfill_textarea is the perfect solution for simplifying your workflow.

Installation instructions

pip install streamlit-component-dropfilltextarea

Usage instructions

Use like default textarea

import streamlit as st

from st_dropfill_textarea import st_dropfill_textarea

value = st_dropfill_textarea("Your label", "")

st.write(value)

Use with layout column (default) or row

st.subheader("Component with column layout (default)")
returnText = st_dropfill_textarea('column layout: ', '',
                                    placeholder="Type at here",
                                    height=200)
st.write(f"Returned text: {returnText}")

st.subheader("Component with row layout")
returnText = st_dropfill_textarea('row layout: ', '',
                                    layout="row",
                                    height=200)
st.write(f"Returned text: {returnText}")

Align multi rows of textarea

labelWidth = 120
label = 'short row: '
text_short = ''
text_short = st_dropfill_textarea(label, text_short,
                                    placeholder="",
                                    layout="row",
                                    labelWidth=labelWidth,
                                    height=200)
label = 'looooong row:'
text_long = ''
text_long = st_dropfill_textarea(label, text_long,
                                    layout="row",
                                    labelWidth=labelWidth,
                                    height=200)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streamlit-component-dropfilltextarea-0.2.3.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file streamlit-component-dropfilltextarea-0.2.3.tar.gz.

File metadata

File hashes

Hashes for streamlit-component-dropfilltextarea-0.2.3.tar.gz
Algorithm Hash digest
SHA256 02a0a30c73c9ca0d7b6729e718fdc4d124d34baada6e3a486754baeb986d32a8
MD5 32c9d575c68b12bc40670442026e9285
BLAKE2b-256 e9593f135bfd742df28537360247c6abdc1922ebf56bc6e4c605025a1c73659e

See more details on using hashes here.

File details

Details for the file streamlit_component_dropfilltextarea-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for streamlit_component_dropfilltextarea-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df626d2b1c6ac76592ebf9c489ea98d528c3d2d9581d56a10c337549a3b3cd8d
MD5 969cbb8e64d0eb0923e2331febe2bd70
BLAKE2b-256 2ff7fa646cd600b7f203fa165236562abbbc3ada3b97d6a9f49b3f853bec0cc3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page