From b403cab5f6bf835e9dc06c687493431d04b3d1bf Mon Sep 17 00:00:00 2001 From: Winston Chang Date: Fri, 19 Apr 2024 20:19:57 -0500 Subject: [PATCH] Use card in module example --- examples/python/modules/app.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/python/modules/app.py b/examples/python/modules/app.py index 11cac2c7..2d3f3378 100644 --- a/examples/python/modules/app.py +++ b/examples/python/modules/app.py @@ -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"),