source line
what a page was written from: a wrapping row of sources at the instrument step, and what closes the line at its far side.
bunx --bun shadcn@latest add @mk/source-lineexample
a citation has to read as something you can open, so a source prints as a link does in running text: in foreground, underlined at rest. end holds the far side in mono, for a time that holds its place.
a source with no address
a source with no href stays a plain name in the line’s ink, so it never reads as a dead link. label changes the line’s first word.
read for this
- the outline
- a call nobody recorded
read for this
- the outline
- a call nobody recorded
long lines
the label and the sources wrap as one row, and a long source wraps inside it. end takes whatever line it lands on, at the far side.
on a phone
each link is its own 44 px box and the lines close up, so no two reaches overlap. end joins the row’s words in the interface’s face.
parts
SourceLine- the list of sources after its
label, which defaults tosources, withendat the far side. SourceLineItem- one source.
hrefor a router link throughrendermakes it a link, and without one it prints as a plain name.