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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13165f8d60912af65f351e62c6b0f2a8ceee4ef453e12e05d7ef47c246696540 |
|
MD5 | 354bf7e87b856b9f19b05aaaacfffd41 |
|
BLAKE2b-256 | db2ae55d3b9c105d85ff661b998d45078a8a480b76799ec9be0dbaea223a39d2 |
Close
Hashes for streamlit_scrollable_textbox-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c8e5da013d9aca5d7932a7fd95dd9991e761a86a18aecbdd848f75b26d7f714 |
|
MD5 | 2d4ed06bec40a40dbfd51db65b05a67e |
|
BLAKE2b-256 | 9d10beee9bd251c7e858d31160a2ce8aa083f1f169d6342143a7875356a01508 |