add spacer to avoid initial hover

This commit is contained in:
Masen Furer 2025-01-06 14:34:57 -08:00
parent 2430fb14b4
commit 9da4061737
No known key found for this signature in database
GPG Key ID: B0008AD22B3B3A95

View File

@ -13,12 +13,13 @@ def LinkApp():
def index():
return rx.vstack(
rx.box(height="10em"), # spacer, so the link isn't hovered initially
rx.link(
"Click me",
href="#",
color="blue",
_hover=rx.Style({"color": "red"}),
)
),
)
app.add_page(index, "/")