Form / Color Picker

Use a color picker to allow a user to select a color.

from h2o_wave import main, app, Q, ui
async def serve(q: Q):
if q.args.show_inputs:['example'].items = [
ui.button(name='show_form', label='Back', primary=True),
else:['example'] = ui.form_card(box='1 1 4 10', items=[
ui.color_picker(name='color', label='Pick a color', value='#F25F5C'),
ui.button(name='show_inputs', label='Submit', primary=True),

Tags: โ€‚color_picker โ€‚form