link is something a person presses to go to a location. It carries an href, and every press travels through the app's one navigation handler, so a link can push a document, open a sheet or switch tabs without the screen knowing how. Seed Exact writes 19 links. Seven are unstyled rows of a grouped list; twelve are painted pieces of content.
What iOS draws
An unstyled link directly in a section is a list cell that pushes: its symbol, title, value and trailing forward-chevron are laid out by the cell, like the rows of Settings. A link with layout or paint of its own (display="flex", a background, a radius) is a pressable box that draws exactly what is written. Either way a tap sends the href to the root's navigate handler (main), which keeps document links on the server of the page being read.
The author profile screenshot on image and symbols shows a row link ("Home document"); the Me tab screenshot on list and section shows three ("Server", "Agent server", "Vault").
Attributes in this app
Attribute | Uses | Meaning |
|---|---|---|
| 19 | The destination. Seven are built with |
| 16 | Test handle |
| 10 | Painted links: no underline |
| 8 |
|
| 6 to 9 each | Painted links lay out their own children |
| 5 each | Cards ( |
| 5 | A full touch target around small content |
| 1 | The author's name on a byline avatar link |
The 19 links
Kind | Link | Goes to | Source |
|---|---|---|---|
List row | Current identity on Me | ||
List row | "Server", "Agent server", "Vault" on Me | ||
List row | "Edit profile" on Identity detail | ||
List row | "Home document" on Author profile | the author's home document | |
List row | Identity name on Vault | Identity detail | |
Content row | a document | ||
Content row | a Thread | ||
Card | DocCard; the embed card and the media row in DocBlockView | a document, or the file's URL | |
Pill | "Add a comment" in DiscussSection | ||
Pill | A document's button block in DocBlockView | the button's URL | |
Text link | "See all N threads" in DiscussSection; the "N comments" line in the Document header | ||
Text link | The document line at the top of a Thread | the document | |
Text link | "Change server" on a failed Edit profile | Server | |
Avatar | Each author in the document byline | Author profile |
Links inside text
Links written inside Markdown are not link elements. A text with markup="markdown" draws them underlined in the label colour (visible in document paragraphs), and a tap goes through the same navigate handler. In agent messages, hm: links are declared as an atom (atom agentDocument link="hm:" color="brand", agents.contract L5) and appear as brand coloured pills.
Used by
Where it is written |
|
|---|---|
Document and site home ( | 2 |
Author profile ( | 1 |
Thread ( | 1 |
Me ( | 4 |
Identity detail ( | 1 |
Edit profile ( | 1 |
Vault ( | 1 |
DocItemRow (named component) | 1 |
DocCard (named component) | 1 |
DocBlockView (named component) | 3 |
DiscussThreadRow (named component) | 1 |
DiscussSection (named component) | 2 |
Total | 19 |
Rules for use
Use link when the press goes to a place that has a route or URL. Use button when it does something. The Agents feature writes its pushing rows as buttons calling follow("/…"); the result is the same on iOS, and new work should prefer link.
Build in-app destinations with path("route", …) so a renamed route cannot leave a dead link.
In a grouped list leave the link unstyled and end it with symbol:forward-chevron.
A painted link sets text-decoration-line="none" and its own color, or the whole card is tinted and underlined.
Small targets get min-height=44.
A pill that navigates is a link with a brand background and radius 999, not a filled button. Its text uses ink.on-brand.
Why
Because documents, comments and authors all have addresses, a link is the natural element for moving between them, and deep links from outside the app arrive through the same handler (Moving between tabs and into the app). It is also what makes "one tap to anywhere in the space" cheap: every row and card is one href (The five principles).
Related
Parent: Primitive elements
How it is built: Navigation and routes, Deep links and URL handling, Read: ids, refs and link targets
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime