CosmoAI commited on
Commit
9c830d9
·
1 Parent(s): 7803202

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from streamlit_option_menu import streamlit_option_menu
3
+
4
+ # Create a nested streamlit-option-menu
5
+ options = [
6
+ "Option 1",
7
+ streamlit_option_menu(
8
+ "Sub Menu",
9
+ options=["Option 2", "Option 3"],
10
+ default="Option 2",
11
+ style={"width": "100%"},
12
+ ),
13
+ ]
14
+
15
+ # Display the streamlit-option-menu
16
+ streamlit_option_menu("Main Menu", options, default="Option 1", style={"width": "100%"})