Components Feedback

Conversation marker

Mark a date, status change, or system event between messages.

Live previewGo + HTML

Proof approved for production

Usage

Supply Text describing the event. Set Announce to true for a live status that will change while the conversation is open.

Register marker with Head and pass its properties to Render. Go setup guide

Go usage
Go usage
err := mono.UI.Render(w, "marker", mono.Props{
	"Announce": false,
	"Text":     "Proof approved for production",
})
Rendered HTML
Rendered HTML
<p data-mono="marker" id="demo-marker" class="mu-small mu-muted" >
  <span>Proof approved for production</span>
</p>
Go template
Go template
<p data-mono="marker" id="{{.ID}}" class="mu-small mu-muted" {{if .Announce}}role="status"{{end}}>
  <span>{{.Text}}</span>
</p>
Component CSS
Component CSS
[data-mono="marker"] { display:flex; align-items:center; gap:.7rem; margin:.45rem 0; text-align:center; }
[data-mono="marker"]::before,[data-mono="marker"]::after { content:""; flex:1; min-width:1rem; height:1px; background:#c8c8c8; }
Use the HTML in a static site

Copy the rendered HTML above. Download these assets into the same folder as your page, then add the tags below to its head.

Shared CSS Component CSS

HTML head
<link rel="stylesheet" href="./base.css">
<link rel="stylesheet" href="./marker.css">

Copy into your project

Run this command from the Mono checkout. Set -out to the component directory in your application.

Terminal
go run ./cmd/mono-ui add -out ./components marker
Example properties (JSON)
example.json
{
  "Announce": false,
  "Text": "Proof approved for production"
}