Skip to main content

Link

Link is the text-style action widget.

Use it when the interaction should read like inline navigation or a secondary action rather than a full button. Good examples are "Learn more", "Open settings", and contextual route changes inside help text or compact panels.

Example

use fission::prelude::*;

let node = Link {
text: "Open billing settings".into(),
on_click: Some(open_billing_settings_action),
}
.build(ctx, view);

Field table

FieldTypeMeaningNotes / default behavior
textStringVisible link label.Required.
on_clickOption<ActionEnvelope>Action fired when the link is pressed.Defaults to None.

The checked-in widget is built from a ghost Button plus underlined text. That means it behaves like an explicit action inside Fission's state loop, not like a browser-native anchor tag with an href.

In practice that is often what you want: the action can navigate within your app, open a settings view, or ask the reducer to emit an OPEN_URL capability. Just remember that the widget itself does not know about URLs.

Specific advice

Use link styling for low-emphasis actions. If the choice is primary, destructive, or touch-critical, a real button is usually clearer and more accessible.

Button, Breadcrumb, Text, and Resources and async.