Skip to main content

Info / Tall

Create a tall information card displaying a title, caption, and either an icon or image.

from h2o_wave import main, app, Q, ui

@app('/demo')async def serve(q: Q):    if q.args.info_card:['example'] = ui.form_card(box='1 1 2 4', items=[            ui.button(name='back', label='Go back', primary=True),        ])    else:['example'] = ui.tall_info_card(            box='1 1 2 5',            name='info_card',            title='Info Card',            caption='Lorem ipsum dolor sit amet consectetur adipisicing elit.',            category='Category',            label='Click me',            image='',        )