ui.link
Link element
Link element that can be used to navigate to a different page.
Can be used as a button or a link.
Example:
:type text: str
:type link: Union[Callable[[], str], str]
from uiwiz import ui
ui.link("Click me", "/some/path").classes("btn btn-primary")
Click meConstructor
text: strNo default required argument
link: UnionNo default required argument
Methods
after_render(html: str) -> str
This method is called after the element is rendered.
:param html: The rendered HTML of the element.
before_render() -> NoneType
No documentation providedclasses(input: str) -> Self
Set tailwind classes for the element.
:param input: The tailwind classes to apply to the element.
:return: The current instance of the element.
get_classes() -> str
Get html classes of the element.
:return: The classes of the element.
:type: str
render(render_script: bool) -> str
Render the element as HTML.
:param render_script: If any element has a javascript script, it will be rendered as well.
:type render_script: bool
size(size: Literal) -> Self
Set the size of the element.
:param size: The size of the element.
:return: The current instance of the element.