Skip to main content

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


Download files

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

Source Distribution

streamlit_scrollable_textbox-0.0.3.tar.gz (497.9 kB view hashes)

Uploaded Source

Built Distribution

streamlit_scrollable_textbox-0.0.3-py3-none-any.whl (971.3 kB view hashes)

Uploaded Python 3

Supported by

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