GitXplorerGitXplorer
a

streamlit-dimensions

public
7 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
30e4545da81b92ce1fd697414808a04aeed2f09f

Update readme.

aavsolatorio committed 3 years ago
Unverified
a314f9f5c2da098af64e808f84aff71590c9931c

Remove log.

aavsolatorio committed 3 years ago
Unverified
9609db053828778f905b0dfa1b0eb754607891ac

Remove log.

aavsolatorio committed 3 years ago
Unverified
7f3f7da0eccdcecad5371110d110f9722fa6e428

Add README.md content.

aavsolatorio committed 3 years ago
Unverified
4970b8c37be9006764be059da66f74a552351716

Rename directory.

aavsolatorio committed 3 years ago
Unverified
836d3cf01a3f57c1a2b3ca2ffd49b6b1f018f867

Update name and remove old template.

aavsolatorio committed 3 years ago

README

The README file for this repository.

Streamlit - Dimensions

A simple streamlit component that returns the dimensions of the container where it is rendered. This may be used to format other components that require the dimensions of the container.

Notes and Limitations

If multiple st_dimensions components will be used in the app, each component must be given a unique key value. Otherwise, the key argument is not required.

The current version only provides the width of the container in pixels.

Installation

pip install streamlit-dimensions

Example

import streamlit as st
from streamlit_dimensions import st_dimensions

st.set_page_config(layout="wide")

st.title("Main Dimensions")
st.write(st_dimensions(key="main"))

with st.sidebar:
    st.title("Sidebar Dimensions")
    st.write(st_dimensions(key="sidebar"))

demo-app