add spacer to avoid initial hover
This commit is contained in:
parent
2430fb14b4
commit
9da4061737
@ -13,12 +13,13 @@ def LinkApp():
|
|||||||
|
|
||||||
def index():
|
def index():
|
||||||
return rx.vstack(
|
return rx.vstack(
|
||||||
|
rx.box(height="10em"), # spacer, so the link isn't hovered initially
|
||||||
rx.link(
|
rx.link(
|
||||||
"Click me",
|
"Click me",
|
||||||
href="#",
|
href="#",
|
||||||
color="blue",
|
color="blue",
|
||||||
_hover=rx.Style({"color": "red"}),
|
_hover=rx.Style({"color": "red"}),
|
||||||
)
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
app.add_page(index, "/")
|
app.add_page(index, "/")
|
||||||
|
Loading…
Reference in New Issue
Block a user