$ rezi
Widgets

Link

Text link widget with optional focus/press behavior and terminal hyperlink support.

Text link widget with optional focus/press behavior and terminal hyperlink support.

Usage

ui.link("https://rezi.dev/docs", "Docs")
ui.link({
  id: "docs-link",
  url: "https://rezi.dev/docs",
  label: "Documentation",
  onPress: () => openDocs(),
})

Props

PropTypeDefaultDescription
urlstringrequiredTarget URL for hyperlink-capable terminals
labelstringurlDisplay text
idstring-Enables focus and action routing when provided
disabledbooleanfalseRenders text but disables focus/press
styleTextStyle-Optional style override
onPress() => void-Local press handler
keystring-Reconciliation key

Behavior

  • Link text defaults to url when label is omitted.
  • With id and disabled !== true, Enter/Space/click trigger a press action.
  • On drawlist v3, Rezi emits hyperlink metadata; on older builders it degrades to styled text.

On this page