File size: 2,791 Bytes
6d7a9c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bdc9546
 
6d7a9c3
 
3390acc
 
6d7a9c3
 
3390acc
6d7a9c3
 
 
 
 
3390acc
6d7a9c3
 
 
 
4539266
6d7a9c3
 
 
 
 
3390acc
6d7a9c3
 
 
 
4539266
6d7a9c3
 
 
 
4539266
6d7a9c3
 
 
 
4539266
6d7a9c3
 
 
 
4539266
 
6d7a9c3
 
 
 
 
4539266
 
6d7a9c3
 
 
 
4539266
 
6d7a9c3
 
 
 
4539266
 
6d7a9c3
 
 
 
4539266
 
6d7a9c3
 
 
 
 
4539266
6d7a9c3
 
 
 
4539266
6d7a9c3
 
 
 
4539266
6d7a9c3
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114

import streamlit as st

def main():
    st.title("Streamlit Options")

    # Text
    st.header("Text")
    st.text("This is a text")
    st.markdown("This is a markdown")

    # Title
    st.title("This is a title")

    # Header
    st.header("This is a header")

    # Subheader
    st.subheader("This is a subheader")

    # Code
    st.header("Code :") 
    st.code("import streamlit as st")

    # Display Data
    st.header("Write stm :")
    st.write("This is a write statement")

    # Dataframe
    st.header("Dataframe")
    import pandas as pd
    df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
    st.write(df)

    # JSON
    st.header("JSON:")
    json_data = {"name": "John", "age": 30, "city": "New York"}
    st.write(json_data)

    # Checkbox
    st.header("Checkbox:")
    checkbox = st.checkbox("Checkbox")
    if checkbox:
        st.write("Checkbox is checked")

    # Radio
    st.header("Radio:")
    radio = st.radio("Radio", ["Option 1", "Option 2", "Option 3"])
    st.write("Selected option:", radio)

    # Selectbox
    st.header("Select Box:")
    selectbox = st.selectbox("Selectbox", ["Option 1", "Option 2", "Option 3"])
    st.write("Selected option:", selectbox)

    # Multiselect
    st.header("Multiselect Box:")
    multiselect = st.multiselect("Multiselect", ["Option 1", "Option 2", "Option 3"])
    st.write("Selected options:", multiselect)

    # Slider
    st.header("Slider:")
    slider = st.slider("Slider", min_value=0, max_value=10, value=5, step=1)
    st.write("Selected value:", slider)

    # Button
    st.header("Button:")

    button = st.button("Button")
    if button:
        st.write("Button clicked")

    # Text Input
    st.header("text_input :")

    text_input = st.text_input("Text Input")
    st.write("Entered text:", text_input)

    # Text Area
    st.header("text_Area :")

    text_area = st.text_area("Text Area")
    st.write("Entered text:", text_area)

    # Number Input
    st.header("Number input :")

    number_input = st.number_input("Number Input", min_value=0, max_value=100, value=50, step=1)
    st.write("Entered number:", number_input)

    # File Uploader
    st.header("File Uploader :")

    file_uploader = st.file_uploader("File Uploader", type=["txt", "csv"])
    if file_uploader is not None:
        st.write("File uploaded")

    # Date Input
    st.header("Date Input :")
    date_input = st.date_input("Date Input")
    st.write("Selected date:", date_input)

    # Time Input
    st.header("Time Input :")
    time_input = st.time_input("Time Input")
    st.write("Selected time:", time_input)

    # Color Picker
    st.header("Color Picker :")
    color_picker = st.color_picker("Color Picker")
    st.write("Selected color:", color_picker)

if __name__ == "__main__":
    main()