Skip to content

Commit

Permalink
Use card in module example
Browse files Browse the repository at this point in the history
  • Loading branch information
wch committed Apr 20, 2024
1 parent 182fdec commit b403cab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/python/modules/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
# ============================================================
@module.ui
def counter_ui(label: str = "Increment counter") -> ui.TagChild:
return ui.div(
{"style": "border: 1px solid #ccc; border-radius: 5px; margin: 5px 0;"},
return ui.card(
ui.h2("This is " + label),
ui.input_action_button(id="button", label=label),
ui.output_text_verbatim(id="out"),
Expand Down

0 comments on commit b403cab

Please sign in to comment.