HyperlinkButton
A Fluent button that looks like a hyperlink: accent-colored text with no border or fill.
Example:
async def open_docs(e: ft.Event[fluent.HyperlinkButton]):
await ft.UrlLauncher().launch_url("https://flet.dev")
fluent.HyperlinkButton("Open docs", on_click=open_docs)
fluent.HyperlinkButton("Open docs", disabled=True)

Inherits: Button
Example
Fluent HyperlinkButton
import flet_fluent_ui as fluent
import flet as ft
def main(page: ft.Page):
page.title = "Fluent HyperlinkButton"
def handle_forgot(e: ft.Event[fluent.HyperlinkButton]):
status.value = "Password reset link sent"
status = ft.Text()
page.add(
ft.SafeArea(
content=ft.Column(
width=300,
controls=[
fluent.TextBox(placeholder="Email"),
fluent.TextBox(placeholder="Password", password=True),
ft.Row(
alignment=ft.MainAxisAlignment.SPACE_BETWEEN,
controls=[
fluent.HyperlinkButton(
"Forgot password?", on_click=handle_forgot
),
fluent.FilledButton("Sign in"),
],
),
status,
],
)
)
)
if __name__ == "__main__":
ft.run(main)
