Link
Makes clicking on child elements navigate to a route.
@solara.component
def Link(
path_or_route: Union[str, solara.Route],
children=[],
nofollow=False,
style: Union[str, Dict[str, str], None] = None,
classes: List[str] = [],
):
...
See also:
Most common usage is in combination with a button, e.g.:
with solara.Link("/fruit/banana"):
solara.Button("Go to banana")
Arguments
- path_or_route: the path or route to navigate to. Paths should be absolute, e.g. '/fruit/banana'.
If a route is given,
resolve_path
] will be used to resolve to the absolute path. - children: the children of the link. If a child is clicked, the link will be followed.
- nofollow: If True, the link will not be followed by web crawlers (such as google).
- style: CSS styles to apply to the HTML link element. Either a string or a dictionary.
- classes: A list of CSS classes to apply to the link.
Example