hdrs = cond_pico_hdrs()+bootstrap_hdrs()Static components
Setup
show(*hdrs)Blank
blank
blank (height=50)
For styles
blank(50)Border
border
border (height=None)
border()Remove blanks in input
format_input
format_input (txt, upper=True)
format_input('s s k')'SSK'
Conditional Pico
Pico
Pico (*args, cls='pico', **kwargs)
Pico conditional Div
Pico(H5('hi'))hi
Pico_Titled
Pico titled with everything else unPico
Pico_Titled
Pico_Titled (title, *args, cls='container', **kwargs)
Pico titled with everything else unPico
Pico_Titled('hello',P('sdf'))hello
sdf
Tabs
get_tab
get_tab (data_dict, prefix='')
Create a bootstrap tab structure with optional prefix for unique IDs and handle spaces in tab names
get_tab({'Tab1':P('content'),
'Tab2':P('content')})content
content
Accordian
get_accordian
get_accordian (data_dict)
Bootstrap accordian
get_accordian({'Tab1':P('content'),
'Tab2':P('content')})content
content
Card
get_card
get_card (img_pth, title, description, link='#', img_height=200, txt_height=150, card_width=22)
Card with link; make sure outside Div has cls = ‘row’