= cond_pico_hdrs()+bootstrap_hdrs() hdrs
Static components
Setup
*hdrs) show(
Blank
blank
blank (height=50)
For styles
50) blank(
Border
border
border (height=None)
border()
Remove blanks in input
format_input
format_input (txt, upper=True)
's s k') format_input(
'SSK'
Conditional Pico
Pico
Pico (*args, cls='pico', **kwargs)
Pico conditional Div
'hi')) Pico(H5(
hi
Pico_Titled
Pico titled with everything else unPico
Pico_Titled
Pico_Titled (title, *args, cls='container', **kwargs)
Pico titled with everything else unPico
'hello',P('sdf')) Pico_Titled(
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
'Tab1':P('content'),
get_tab({'Tab2':P('content')})
content
content
Accordian
get_accordian
get_accordian (data_dict)
Bootstrap accordian
'Tab1':P('content'),
get_accordian({'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’