A sidebar is a panel beside the main content area. In a Streamlit app, it holds navigation, app information, or controls such as quantity choices while the main area handles the primary task. section 3.6.1
Use a sidebar when the interface needs to:
- Offer links to different app pages. section 3.6.1
- Provide metainformation or additional content without crowding the main area. section 3.6.1
- Keep controls such as radio buttons separate from the primary workflow. section 3.6.1
Unit Converter quantity selector
Place the quantity choices in the sidebar with either `with st.sidebar:` or dot notation: `quantity = st.sidebar.radio("Select a quantity", ["Mass", "Length", "Time"])`. Streamlit displays an X icon to collapse the panel and a > icon to reopen it. section 3.6.1
Figure 3.8 st.sidebar in action with a set of radio buttons inside
Inspect the rendered sidebar with radio buttons in the Unit Converter interface. section 3.6.1

