Static components

Setup

hdrs = cond_pico_hdrs()+bootstrap_hdrs()
show(*hdrs)

Blank


source

blank

 blank (height=50)

For styles

blank(50)

Border


source

border

 border (height=None)
border()

Remove blanks in input


source

format_input

 format_input (txt, upper=True)
format_input('s s k')
'SSK'

Conditional Pico


source

Pico

 Pico (*args, cls='pico', **kwargs)

Pico conditional Div

Pico(H5('hi'))
hi

Pico_Titled

Pico titled with everything else unPico


source

Pico_Titled

 Pico_Titled (title, *args, cls='container', **kwargs)

Pico titled with everything else unPico

Pico_Titled('hello',P('sdf'))
hello

hello

sdf

Tabs


source

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


source

get_accordian

 get_accordian (data_dict)

Bootstrap accordian

get_accordian({'Tab1':P('content'),
               'Tab2':P('content')})

content

content

Download Button


source

download_button

 download_button (*args, **kwargs)
download_button(' Download')

Card


source

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’

get_card('./data/card_plot.png','Universe','sdfsdfsdf',link='#')
Universe

sdfsdfsdf

End