TextLink

Outside the canon

Outside the canon vocabulary; from the catalog's rt-links style guide. Every text link shares one hover treatment, a dashed underline that fades in (exported as DASHED_UNDERLINE_CLASSES). Four kinds: inline copy and entity IDs in rust, entity names and table actions in navy. Respellings from the catalog: table-action no longer pins a size (the DEV-3250 branch's 12px is below the canon's ui-sm floor, so it inherits its row's size); hover:text-navy-dark is dropped (not a token), so navy links keep text-navy and the underline reveal carries the hover (conflict 6). Translation watch-out: Tailwind 2.2 has no decoration-* or underline-offset-* utilities, so the app needs one .tw-link-dashed CSS rule; Button's link variant has the same gap. Every TextLink carries data-text-link (2026-10-28), so a container can recolour its links without catching a Button rendered as a link: inside a status Banner it takes the banner's colour.

App: Ui::TextLinkComponent (suggested)

Inline

#inline

Links inside body copy or descriptions. Rust signals "this is clickable"; the dashed underline appears on hover.

This order was created from subscription #1042 and billed to Nolan's Bakery. See payment terms for details.

Entity ID and name

#entity

Routable data in detail views: IDs in rust with font-medium, names in navy with font-semibold. Navy links keep text-navy on hover; the underline reveal is the hover state.

Order ID

PR-2024-001

Invoice

INV-00418

Table action

#table-action

Secondary actions inside tables and detail rows: navy, font-semibold, ui-xs.

Inside table cells

#in-table

All four kinds in one row: entity-id, entity-name, inline, table-action. The frame uses the workshop's table classes inline; it becomes Table once that unit lands.

Props

NameTypeDefaultNotes
kindinline | entity-id | entity-name | table-actioninlineinline: rust; entity-id: rust, font-medium; entity-name: navy, font-semibold; table-action: navy, font-semibold, inherits its context size
hrefstring—Required. Internal hrefs render next/link
externalbooleanfalseRenders a plain <a target="_blank" rel="noreferrer"> instead of next/link
classNamestring—Maps to the app's classes: argument
childrenReactNode—The link text