# check out https://solara.dev/ for documentation
# or https://github.com/widgetti/solara/
# And check out https://py.cafe/maartenbreddels for more examples
import solara
@solara.component
def Page():
solara.Markdown("""
# Scroll to target
Click on a link and you should scoll to the target element
""")
with solara.Row():
for i in range(30):
with solara.v.Html(tag="a", attributes={"href": f"#foo-{i}"}):
solara.Text(f"link-{i}")
for i in range(30):
with solara.Column():
with solara.v.Html(tag="a", attributes={"id": f"foo-{i}"}):
solara.Success(f"Number {i}")