test2023h5's picture
Upload 44 files
7798609 verified
raw
history blame contribute delete
595 Bytes
'''
title: Tabs
'''
import simplestart as ss
ss.md("## ss.tabs")
ss.space("mt-16")
ss.md("#### πŸ”… Example")
tabtitles = ["tab1", "tab2", "tab3"]
tabs = ss.tabs(tabtitles)
with tabs[0]:
ss.text("this is tab 1")
with tabs[1]:
ss.text("this is tab 2")
with tabs[2]:
ss.text("this is tab 3")
ss.space()
ss.write("#### πŸ”Ž Code")
ss.md('''
```python
import simplestart as ss
tabtitles = ["tab1", "tab2", "tab3"]
tabs = ss.tabs(tabtitles)
with tabs[0]:
ss.text("this is tab 1")
with tabs[1]:
ss.text("this is tab 2")
with tabs[2]:
ss.text("this is tab 3")
''')