Scrollable textbox for Streamlit.
Project description
Streamlit Scrollable Textbox
This repository contains a custom Streamlit component, that allows users to create scrollable textboxes of a defined height, to display long pieces of text on a Streamlit app while maintaining a desired layout.
To install the component, run the following command:
pip install streamlit-scrollable-textbox
Importing and using the package in your Python project can be done as so:
import streamlit-scrollable-textbox as stx
stx.scrollableTextbox('My very long text.')
The parameters of the scrollableTextbox function are:
- text (str): The text to be displayed. Line breaks and new lines can be added by including "\n" in the string.
- height (int): The height of the scrollable area, in pixels. Default value is 100 px.
- border (bool): Define whether the scrollable area should have a border or not.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for streamlit_scrollable_textbox-0.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32c22fb28a16caa4f952f4ce6bc8ab8dc79c5adf36b188ac8938bc458905fbc |
|
MD5 | e4e7c48cf3dd53898875750258dc10c0 |
|
BLAKE2b-256 | cdc48dcbcbbd6109420333a06c124f771287d75ae6b328b7e3fb8d0216b32c07 |
Close
Hashes for streamlit_scrollable_textbox-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48d57f5477491b58afde2cd6a81d6c98bdb8063570fc2467958ae286d883b5c |
|
MD5 | df5a07e33df84e352da2ecefbe6e5369 |
|
BLAKE2b-256 | d84f50ea64244fa602d514c47cb26778a80ec0cd4dec6240e7ca01d040556d1e |