Skip to main content
Big news! Interval has been acquired by Meter. Learn more →

io.display.link

Displays a button-styled action link to the action user. Can link to an external URL or to another action.

Usage

await io.display.link("Run another action", {
route: "usefulAction",
theme: "danger",
});
interval.com

Props

params

Optional

object

Arbitrary key/value pairs to be passed to the given action slug. Only applies when `action` is defined.

route

Optional

string

Slug of another action or page to link to. Alternative to `url`.

theme

Optional

"default" | "danger"

Button visual theme.

url

Optional

string

Absolute URL to link to external resources.

Returns

null

Did this section clearly explain what you wanted to learn?
On this page