solara icon indicating copy to clipboard operation
solara copied to clipboard

[Feature Request] Create a solara component for a scrollable text area

Open Ben-Epstein opened this issue 2 years ago • 0 comments

Often times you want a scrollable text area for markdown, text, sql, code, anything really. You should be able to do something like

with sl.Scrollable(max_height="500px"):
    sl.Markdown("## Hi")
    sl.Markdown(<some_long_text>)

or something similar. Currently, I need to do this, which would be nearly impossible to figure out for a new user

import reacton.ipyvuetify as v
with sl.Card():
    card_md = v.Container(
        style_=(
            "height: 700px; overflow-y: scroll;"
        )
    )
    card_md.add_children([sl.Markdown(my_content)])
        

Ben-Epstein avatar Apr 15 '23 16:04 Ben-Epstein