Widget Help/Tooltip alignment

Hi, is there a way to align a widget help/tooltip? I have mine moving out to the window - refer pix below:

Untitled

Also, is it possible to break the tooltip text into multiple lines? Inserting ‘\n’ within the tooltip text does not seem to work.

Thanks in advance.

Cheers

I’m unsure how to align a widget tooltip :sweat_smile:

Also, is it possible to break the tooltip text into multiple lines? Inserting ‘\n’ within the tooltip text does not seem to work.

It is possible with two \n\n characters. E.g.:

import streamlit as st

help_input="This is the line1\n\nThis is the line 2\n\nThis is the line 3"
st.text_area("Test",help=help_input)

1 Like

Thanks @snehankekre , this helps, atleast tooltips that are going off screen can be split up into multiple lines.

God bless

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.