├── .DS_Store
├── .gitignore
├── LICENSE
├── MANIFEST.in
├── README.md
├── setup.py
└── streamlit_scrollable_textbox
├── .DS_Store
├── __init__.py
└── frontend
├── .DS_Store
├── .env
├── .prettierrc
├── .prettierrc 2
├── package-lock.json
├── package.json
├── public
├── bootstrap.min.css
└── index.html
├── src
├── .DS_Store
├── index.tsx
├── react-app-env.d.ts
└── streamlit_scrollable_textbox.tsx
└── tsconfig.json
/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/RobertoFN/streamlit-scrollable-textbox/10ffbab35b27f1533fb471a25d7abb117709685a/.DS_Store
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | build/
2 | .venv/
3 | dist/
4 | streamlit_scrollable_textbox.egg-info/
5 | streamlit_scrollable_textbox/frontend/build/
6 | streamlit_scrollable_textbox/frontend/node_modules/
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2018-2021 Streamlit Inc.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in all
11 | copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19 | SOFTWARE.
20 |
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | recursive-include streamlit_scrollable_textbox/frontend/build *
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
Streamlit Scrollable Textbox
2 |
3 | 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.
4 |
5 |
6 | To install the component, run the following command:
7 |
8 | pip install streamlit-scrollable-textbox
9 |
10 |
11 | Importing and using the package in your Python project can be done as so:
12 |
13 | import streamlit_scrollable_textbox as stx
14 |
15 | stx.scrollableTextbox('My very long text.')
16 |
17 |
18 | The parameters of the scrollableTextbox function are:
19 |
20 | - text (str): The text to be displayed. Line breaks and new lines can be added by including "\n" in the string.
21 | - height (int): The height of the scrollable area, in pixels. Default value is 100 px.
22 | - font family (str): The font family of the text to be displayed. Only fonts supported by browsers can be used.
23 | - border (bool): Define whether the scrollable area should have a border or not.
24 |
25 |