add spacer to avoid initial hover
This commit is contained in:
parent
2430fb14b4
commit
9da4061737
@ -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, "/")
|
||||
|
Loading…
Reference in New Issue
Block a user