Expand description
Link — a clickable text label rendered as underlined inline text.
Link is Teksilo’s hyperlink control: it responds to tap, Enter, and
Space like a Button, but renders as styled underlined text rather than a
bordered box. It supports an optional url field (informational — the app
decides whether and how to open it), a reactive visited state that shifts
the text colour, and all three tooltip tiers (plain / rich / composite).
Keyboard behaviour follows the platform link convention: Space and Enter
activate; a bare KeyUp with no preceding KeyDown is ignored (lone-KeyUp
guard). The focus ring appears only after keyboard navigation
(focus_visible), not after a mouse click.
§Accessibility
Role::Link with the label as the AT name. When url is set it is
forwarded to set_url so screen readers can announce the destination.
Exposes Action::Click and Action::Focus.
let _w = Link::new(lit!("Open documentation"))
.url("https://example.com/docs");Structs§
- Link
- A clickable text link that renders as underlined inline text.