whitphx HF staff commited on
Commit
e055aad
1 Parent(s): c21a17b

Add sample components

Browse files
Files changed (1) hide show
  1. fragments.py +5 -0
fragments.py CHANGED
@@ -24,4 +24,9 @@ def contrast_summary(label: str, foreground_rgb_hex: str, background_rgb_hex: st
24
 
25
  def sample_components(key: str):
26
  st.header("Sample components")
 
27
  st.slider("Slider", min_value=0, max_value=100, key=f"{key}:slider")
 
 
 
 
 
24
 
25
  def sample_components(key: str):
26
  st.header("Sample components")
27
+ st.text_input("Text input", key=f"{key}:text_input")
28
  st.slider("Slider", min_value=0, max_value=100, key=f"{key}:slider")
29
+ st.button("Button", key=f"{key}:button")
30
+ st.checkbox("Checkbox", key=f"{key}:checkbox", value=True)
31
+ st.radio("Radio", options=["Option 1", "Option 2"], key=f"{key}:radio")
32
+ st.selectbox("Selectbox", options=["Option 1", "Option 2"], key=f"{key}:selectbox")