Components Data display

Event calendar

Browse a full month of events and open the programme for a single day.

Live previewGo + JavaScript

Form & Function

Studio calendar

SingaporeSGT

Browse all event dates

Usage

Set Title to the calendar name. Subtitle, Location, and TimeZoneLabel appear in the header. SelectedDate accepts an ISO date such as 2027-03-12. Set TimeZone to an IANA name such as Asia/Singapore so Today follows the venue’s date. Give each entry in Events a Date and Title. Provide Time and EndTime as local 24-hour times (HH:MM), or omit both for an all-day event. Add Track, Venue, Description, ImageURL with ImageAlt, and URL with LinkLabel as needed. Serve artwork from your application or copy the sample images from examples/components/events/form-function. Select a date to see its agenda. Use the arrow keys to move by day or week, Home and End for week boundaries, and Page Up and Page Down to change month. With JavaScript disabled, use the dates in the grid or Browse all event dates to open an agenda.

Register event-calendar with Head and pass its properties to Render. Go setup guide

Go usage
Go usage
err := mono.UI.Render(w, "event-calendar", mono.Props{
	"Events": []any{
		map[string]any{
			"Date":        "2027-02-26",
			"Description": "Pull a first impression from the studio press and pin your proof beside last month’s edition.",
			"EndTime":     "18:00",
			"Time":        "16:00",
			"Title":       "Proofing afternoon",
			"Track":       "Open studio",
			"Venue":       "Print room",
		},
		map[string]any{
			"Date":        "2027-03-02",
			"Description": "Jo Leone builds a load-bearing bridge from a sheet of card. Fold your own and see how much it holds.",
			"EndTime":     "12:00",
			"ImageAlt":    "Pleated white card forms a ridge of alternating light and shadow.",
			"ImageURL":    "../components/events/form-function/paper-study.webp",
			"Time":        "10:30",
			"Title":       "Paper structures",
			"Track":       "Workshop",
			"Venue":       "Studio A",
		},
		map[string]any{
			"Date":        "2027-03-06",
			"Description": "Browse a cabinet of wood and metal type alongside prints made from the same blocks.",
			"Title":       "The type cabinet",
			"Track":       "Exhibition",
			"Venue":       "Print room",
		},
		map[string]any{
			"Date":        "2027-03-10",
			"Description": "Sam Okafor hangs a series of wire mobiles and compares how each one settles.",
			"EndTime":     "18:30",
			"ImageAlt":    "Thin wire arms support a balanced group of metal disks.",
			"ImageURL":    "../components/events/form-function/balance.webp",
			"Time":        "17:30",
			"Title":       "Motion studies",
			"Track":       "Talk",
			"Venue":       "Studio A",
		},
		map[string]any{
			"Date":        "2027-03-12",
			"Description": "Leah Chen takes apart a desk lamp to show how two springs change the feel of a familiar tool.",
			"EndTime":     "09:45",
			"ImageAlt":    "An articulated black desk lamp casts a long shadow.",
			"ImageURL":    "../components/events/form-function/work-light.webp",
			"LinkLabel":   "View conference programme",
			"Time":        "09:00",
			"Title":       "The shape of a good tool",
			"Track":       "Keynote",
			"URL":         "../components/event-schedule.html",
			"Venue":       "Main hall",
		},
		map[string]any{
			"Date":        "2027-03-12",
			"Description": "Join Iris Tan at the proofing press. Compare a letter set in wood with the same letter set in metal.",
			"EndTime":     "13:55",
			"Time":        "13:15",
			"Title":       "Open type studio",
			"Track":       "Open studio",
			"Venue":       "Print room",
		},
		map[string]any{
			"Date":        "2027-03-13",
			"Description": "Iris Tan traces a worn letterform from a drawer of type to the outline of a digital font.",
			"EndTime":     "10:45",
			"ImageAlt":    "Worn letterpress blocks show the reversed faces of carved letters.",
			"ImageURL":    "../components/events/form-function/letterforms.webp",
			"Time":        "10:00",
			"Title":       "Type with a past",
			"Track":       "Keynote",
			"Venue":       "Main hall",
		},
		map[string]any{
			"Date":        "2027-03-17",
			"Description": "Cut and score three paper hinges, then test their resistance side by side.",
			"EndTime":     "16:00",
			"Time":        "14:00",
			"Title":       "Hinge workshop",
			"Track":       "Workshop",
			"Venue":       "Model shop",
		},
		map[string]any{
			"Date":        "2027-03-23",
			"Description": "Hear a day in the workshop through recordings of the press, the paper cutter, and the doors at closing time.",
			"EndTime":     "19:00",
			"Time":        "18:00",
			"Title":       "Field recordings",
			"Track":       "Listening session",
			"Venue":       "Studio B",
		},
		map[string]any{
			"Date":        "2027-03-26",
			"Description": "Bring an unfinished object and a question. The studio team will make the next iteration with you.",
			"EndTime":     "17:00",
			"Time":        "15:00",
			"Title":       "Open workbench",
			"Track":       "Open studio",
			"Venue":       "Model shop",
		},
		map[string]any{
			"Date":        "2027-03-30",
			"Description": "Bring one small print to trade. Each maker will give a short account of how their edition came together.",
			"EndTime":     "18:00",
			"Time":        "17:00",
			"Title":       "Print exchange",
			"Track":       "Meetup",
			"Venue":       "Courtyard",
		},
		map[string]any{
			"Date":        "2027-04-01",
			"Description": "Assemble a studio stool with hand tools and take a measured drawing home.",
			"EndTime":     "12:00",
			"Time":        "10:00",
			"Title":       "Bench assembly",
			"Track":       "Workshop",
			"Venue":       "Model shop",
		},
	},
	"Location":      "Singapore",
	"SelectedDate":  "2027-03-12",
	"Subtitle":      "Form & Function",
	"TimeZone":      "Asia/Singapore",
	"TimeZoneLabel": "SGT",
	"Title":         "Studio calendar",
})
Rendered HTML
Rendered HTML
<section id="demo-event-calendar" data-mono="event-calendar" data-selected="2027-03-12" data-zone="Asia/Singapore" aria-labelledby="demo-event-calendar-title">
  <header class="mu-ec-mast">
    <div><p class="mu-ec-kicker">Form &amp; Function</p><h2 id="demo-event-calendar-title">Studio calendar</h2></div>
    <p class="mu-ec-location"><span><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Singapore</span><span>SGT</span></p>
  </header>
  <div class="mu-ec-layout">
    <div class="mu-ec-month">
      <div class="mu-ec-toolbar">
        <div class="mu-ec-month-heading"><h3 id="demo-event-calendar-month" data-month-label>March 2027</h3><span data-month-count>10 events</span></div>
        <div class="mu-ec-pager" role="group" aria-label="Calendar navigation" data-calendar-nav hidden>
          <button type="button" data-prev aria-label="Previous month"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></button>
          <button type="button" data-today>Today</button>
          <button type="button" data-next aria-label="Next month"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></button>
        </div>
      </div>
      <table class="mu-ec-table" aria-labelledby="demo-event-calendar-month">
        <thead><tr><th scope="col" abbr="Monday">Mon</th><th scope="col" abbr="Tuesday">Tue</th><th scope="col" abbr="Wednesday">Wed</th><th scope="col" abbr="Thursday">Thu</th><th scope="col" abbr="Friday">Fri</th><th scope="col" abbr="Saturday">Sat</th><th scope="col" abbr="Sunday">Sun</th></tr></thead>
        <tbody data-grid><tr><td>
          <span class="mu-ec-cell" data-day="2027-03-01">
  <span class="mu-ec-day-number">1</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-02" data-day="2027-03-02" aria-label="Tuesday, March 2, 2027, 1 event">
  <span class="mu-ec-day-number">2</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Paper structures</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-03">
  <span class="mu-ec-day-number">3</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-04">
  <span class="mu-ec-day-number">4</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-05">
  <span class="mu-ec-day-number">5</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-06" data-day="2027-03-06" aria-label="Saturday, March 6, 2027, 1 event">
  <span class="mu-ec-day-number">6</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">The type cabinet</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-07">
  <span class="mu-ec-day-number">7</span>
  
  
</span>
        </td></tr><tr><td>
          <span class="mu-ec-cell" data-day="2027-03-08">
  <span class="mu-ec-day-number">8</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-09">
  <span class="mu-ec-day-number">9</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-10" data-day="2027-03-10" aria-label="Wednesday, March 10, 2027, 1 event">
  <span class="mu-ec-day-number">10</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Motion studies</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-11">
  <span class="mu-ec-day-number">11</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-12" data-day="2027-03-12" data-selected aria-label="Friday, March 12, 2027, 2 events">
  <span class="mu-ec-day-number">12</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">The shape of a good tool</span></span>
  <span class="mu-ec-more">+1</span>
</a>
          
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-13" data-day="2027-03-13" aria-label="Saturday, March 13, 2027, 1 event">
  <span class="mu-ec-day-number">13</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Type with a past</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-14">
  <span class="mu-ec-day-number">14</span>
  
  
</span>
        </td></tr><tr><td>
          <span class="mu-ec-cell" data-day="2027-03-15">
  <span class="mu-ec-day-number">15</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-16">
  <span class="mu-ec-day-number">16</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-17" data-day="2027-03-17" aria-label="Wednesday, March 17, 2027, 1 event">
  <span class="mu-ec-day-number">17</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Hinge workshop</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-18">
  <span class="mu-ec-day-number">18</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-19">
  <span class="mu-ec-day-number">19</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-20">
  <span class="mu-ec-day-number">20</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-21">
  <span class="mu-ec-day-number">21</span>
  
  
</span>
        </td></tr><tr><td>
          <span class="mu-ec-cell" data-day="2027-03-22">
  <span class="mu-ec-day-number">22</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-23" data-day="2027-03-23" aria-label="Tuesday, March 23, 2027, 1 event">
  <span class="mu-ec-day-number">23</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Field recordings</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-24">
  <span class="mu-ec-day-number">24</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-25">
  <span class="mu-ec-day-number">25</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-26" data-day="2027-03-26" aria-label="Friday, March 26, 2027, 1 event">
  <span class="mu-ec-day-number">26</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Open workbench</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-27">
  <span class="mu-ec-day-number">27</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-28">
  <span class="mu-ec-day-number">28</span>
  
  
</span>
        </td></tr><tr><td>
          <span class="mu-ec-cell" data-day="2027-03-29">
  <span class="mu-ec-day-number">29</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-03-30" data-day="2027-03-30" aria-label="Tuesday, March 30, 2027, 1 event">
  <span class="mu-ec-day-number">30</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Print exchange</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-03-31">
  <span class="mu-ec-day-number">31</span>
  
  
</span>
        </td><td>
          <a class="mu-ec-cell" href="#demo-event-calendar-date-2027-04-01" data-day="2027-04-01" data-outside aria-label="Thursday, April 1, 2027, 1 event">
  <span class="mu-ec-day-number">1</span>
  <span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">Bench assembly</span></span>
  
</a>
          
        </td><td>
          <span class="mu-ec-cell" data-day="2027-04-02" data-outside>
  <span class="mu-ec-day-number">2</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-04-03" data-outside>
  <span class="mu-ec-day-number">3</span>
  
  
</span>
        </td><td>
          <span class="mu-ec-cell" data-day="2027-04-04" data-outside>
  <span class="mu-ec-day-number">4</span>
  
  
</span>
        </td></tr></tbody>
      </table>
      <p class="mu-ec-legend"><span><i class="mu-ec-dot" aria-hidden="true"></i>Scheduled event</span><span><i class="mu-ec-today-key" aria-hidden="true"></i>Today</span></p>
    </div>
    <aside class="mu-ec-agenda" aria-label="Daily agenda">
      
      <section id="demo-event-calendar-date-2027-02-26" class="mu-ec-day-panel" data-agenda-date="2027-02-26" aria-labelledby="demo-event-calendar-label-2027-02-26">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-02-26"><span class="mu-ec-large-day">26</span><span>Friday<small>February 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="16:00">16:00</time> – <time datetime="18:00">18:00</time></span><span>Open studio</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Proofing afternoon</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Print room</p>
            <p class="mu-ec-description">Pull a first impression from the studio press and pin your proof beside last month’s edition.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-02" class="mu-ec-day-panel" data-agenda-date="2027-03-02" aria-labelledby="demo-event-calendar-label-2027-03-02">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-02"><span class="mu-ec-large-day">02</span><span>Tuesday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="10:30">10:30</time> – <time datetime="12:00">12:00</time></span><span>Workshop</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Paper structures</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            <img src="../components/events/form-function/paper-study.webp" alt="Pleated white card forms a ridge of alternating light and shadow." loading="lazy" decoding="async">
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Studio A</p>
            <p class="mu-ec-description">Jo Leone builds a load-bearing bridge from a sheet of card. Fold your own and see how much it holds.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-06" class="mu-ec-day-panel" data-agenda-date="2027-03-06" aria-labelledby="demo-event-calendar-label-2027-03-06">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-06"><span class="mu-ec-large-day">06</span><span>Saturday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time">All day</span><span>Exhibition</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>The type cabinet</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Print room</p>
            <p class="mu-ec-description">Browse a cabinet of wood and metal type alongside prints made from the same blocks.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-10" class="mu-ec-day-panel" data-agenda-date="2027-03-10" aria-labelledby="demo-event-calendar-label-2027-03-10">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-10"><span class="mu-ec-large-day">10</span><span>Wednesday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="17:30">17:30</time> – <time datetime="18:30">18:30</time></span><span>Talk</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Motion studies</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            <img src="../components/events/form-function/balance.webp" alt="Thin wire arms support a balanced group of metal disks." loading="lazy" decoding="async">
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Studio A</p>
            <p class="mu-ec-description">Sam Okafor hangs a series of wire mobiles and compares how each one settles.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-12" class="mu-ec-day-panel" data-agenda-date="2027-03-12" data-initial aria-labelledby="demo-event-calendar-label-2027-03-12">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-12"><span class="mu-ec-large-day">12</span><span>Friday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">2 events</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="09:00">09:00</time> – <time datetime="09:45">09:45</time></span><span>Keynote</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>The shape of a good tool</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            <img src="../components/events/form-function/work-light.webp" alt="An articulated black desk lamp casts a long shadow." loading="lazy" decoding="async">
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Main hall</p>
            <p class="mu-ec-description">Leah Chen takes apart a desk lamp to show how two springs change the feel of a familiar tool.</p>
            <a class="mu-ec-link" href="../components/event-schedule.html">View conference programme <span aria-hidden="true"><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></a>
          </div>
        </details>
        
        <details class="mu-ec-event" data-entry>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="13:15">13:15</time> – <time datetime="13:55">13:55</time></span><span>Open studio</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Open type studio</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Print room</p>
            <p class="mu-ec-description">Join Iris Tan at the proofing press. Compare a letter set in wood with the same letter set in metal.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-13" class="mu-ec-day-panel" data-agenda-date="2027-03-13" aria-labelledby="demo-event-calendar-label-2027-03-13">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-13"><span class="mu-ec-large-day">13</span><span>Saturday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="10:00">10:00</time> – <time datetime="10:45">10:45</time></span><span>Keynote</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Type with a past</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            <img src="../components/events/form-function/letterforms.webp" alt="Worn letterpress blocks show the reversed faces of carved letters." loading="lazy" decoding="async">
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Main hall</p>
            <p class="mu-ec-description">Iris Tan traces a worn letterform from a drawer of type to the outline of a digital font.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-17" class="mu-ec-day-panel" data-agenda-date="2027-03-17" aria-labelledby="demo-event-calendar-label-2027-03-17">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-17"><span class="mu-ec-large-day">17</span><span>Wednesday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="14:00">14:00</time> – <time datetime="16:00">16:00</time></span><span>Workshop</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Hinge workshop</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Model shop</p>
            <p class="mu-ec-description">Cut and score three paper hinges, then test their resistance side by side.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-23" class="mu-ec-day-panel" data-agenda-date="2027-03-23" aria-labelledby="demo-event-calendar-label-2027-03-23">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-23"><span class="mu-ec-large-day">23</span><span>Tuesday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="18:00">18:00</time> – <time datetime="19:00">19:00</time></span><span>Listening session</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Field recordings</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Studio B</p>
            <p class="mu-ec-description">Hear a day in the workshop through recordings of the press, the paper cutter, and the doors at closing time.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-26" class="mu-ec-day-panel" data-agenda-date="2027-03-26" aria-labelledby="demo-event-calendar-label-2027-03-26">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-26"><span class="mu-ec-large-day">26</span><span>Friday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="15:00">15:00</time> – <time datetime="17:00">17:00</time></span><span>Open studio</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Open workbench</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Model shop</p>
            <p class="mu-ec-description">Bring an unfinished object and a question. The studio team will make the next iteration with you.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-03-30" class="mu-ec-day-panel" data-agenda-date="2027-03-30" aria-labelledby="demo-event-calendar-label-2027-03-30">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-03-30"><span class="mu-ec-large-day">30</span><span>Tuesday<small>March 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="17:00">17:00</time> – <time datetime="18:00">18:00</time></span><span>Meetup</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Print exchange</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Courtyard</p>
            <p class="mu-ec-description">Bring one small print to trade. Each maker will give a short account of how their edition came together.</p>
            
          </div>
        </details>
        
      </section>
      
      <section id="demo-event-calendar-date-2027-04-01" class="mu-ec-day-panel" data-agenda-date="2027-04-01" aria-labelledby="demo-event-calendar-label-2027-04-01">
        <div class="mu-ec-panel-heading">
          <h3 id="demo-event-calendar-label-2027-04-01"><span class="mu-ec-large-day">01</span><span>Thursday<small>April 2027</small></span></h3>
          <span class="mu-ec-count">1 event</span>
        </div>
        
        <details class="mu-ec-event" data-entry open>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time"><time datetime="10:00">10:00</time> – <time datetime="12:00">12:00</time></span><span>Workshop</span></span>
            <span class="mu-ec-entry-title"><strong data-entry-title>Bench assembly</strong><span><svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg></span></span>
          </summary>
          <div class="mu-ec-entry-body">
            
            <p class="mu-ec-venue"><svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>Model shop</p>
            <p class="mu-ec-description">Assemble a studio stool with hand tools and take a measured drawing home.</p>
            
          </div>
        </details>
        
      </section>
      
      <section class="mu-ec-day-panel" data-empty-day hidden>
        <div class="mu-ec-panel-heading"><h3><span class="mu-ec-large-day" data-empty-number></span><span><span data-empty-weekday></span><small data-empty-month></small></span></h3><span class="mu-ec-count">0 events</span></div>
        <p class="mu-ec-empty-message">No events scheduled for this day.</p>
      </section>
    </aside>
  </div>
  <details class="mu-ec-index" data-programme-index>
    <summary class="mu-disclosure">Browse all event dates</summary><ul><li><a href="#demo-event-calendar-date-2027-02-26">Friday, February 26, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-02">Tuesday, March 2, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-06">Saturday, March 6, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-10">Wednesday, March 10, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-12">Friday, March 12, 2027 · 2 events</a></li><li><a href="#demo-event-calendar-date-2027-03-13">Saturday, March 13, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-17">Wednesday, March 17, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-23">Tuesday, March 23, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-26">Friday, March 26, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-03-30">Tuesday, March 30, 2027 · 1 event</a></li><li><a href="#demo-event-calendar-date-2027-04-01">Thursday, April 1, 2027 · 1 event</a></li></ul>
  </details>
  <span class="mu-sr-only" data-status role="status" aria-atomic="true"></span>
</section>
Go template
Go template
{{define "ec-chevron"}}<svg viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m9 5 7 7-7 7"/></svg>{{end}}
{{define "ec-pin"}}<svg viewBox="0 0 24 24" width="15" height="15" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><path d="M19 10c0 5-7 11-7 11S5 15 5 10a7 7 0 1 1 14 0Z"/><circle cx="12" cy="10" r="2.3"/></svg>{{end}}
{{define "ec-cell-content"}}
  <span class="mu-ec-day-number">{{.Number}}</span>
  {{with .Events}}<span class="mu-ec-cell-event"><span class="mu-ec-dot" aria-hidden="true"></span><span class="mu-ec-cell-title">{{(index . 0).Title}}</span></span>{{end}}
  {{if .Extra}}<span class="mu-ec-more">+{{.Extra}}</span>{{end}}
{{end}}
{{$cal := calendarMonth .}}
<section id="{{.ID}}" data-mono="event-calendar" data-selected="{{$cal.Selected.Date}}" data-zone="{{or .TimeZone "UTC"}}" aria-labelledby="{{.ID}}-title">
  <header class="mu-ec-mast">
    <div>{{with .Subtitle}}<p class="mu-ec-kicker">{{.}}</p>{{end}}<h2 id="{{.ID}}-title">{{or .Title "Event calendar"}}</h2></div>
    {{if or .Location .TimeZoneLabel}}<p class="mu-ec-location">{{with .Location}}<span>{{template "ec-pin"}}{{.}}</span>{{end}}{{with .TimeZoneLabel}}<span>{{.}}</span>{{end}}</p>{{end}}
  </header>
  <div class="mu-ec-layout">
    <div class="mu-ec-month">
      <div class="mu-ec-toolbar">
        <div class="mu-ec-month-heading"><h3 id="{{.ID}}-month" data-month-label>{{$cal.MonthLabel}}</h3><span data-month-count>{{$cal.MonthCount}} {{if eq $cal.MonthCount 1}}event{{else}}events{{end}}</span></div>
        <div class="mu-ec-pager" role="group" aria-label="Calendar navigation" data-calendar-nav hidden>
          <button type="button" data-prev aria-label="Previous month">{{template "ec-chevron"}}</button>
          <button type="button" data-today>Today</button>
          <button type="button" data-next aria-label="Next month">{{template "ec-chevron"}}</button>
        </div>
      </div>
      <table class="mu-ec-table" aria-labelledby="{{.ID}}-month">
        <thead><tr><th scope="col" abbr="Monday">Mon</th><th scope="col" abbr="Tuesday">Tue</th><th scope="col" abbr="Wednesday">Wed</th><th scope="col" abbr="Thursday">Thu</th><th scope="col" abbr="Friday">Fri</th><th scope="col" abbr="Saturday">Sat</th><th scope="col" abbr="Sunday">Sun</th></tr></thead>
        <tbody data-grid>{{range $cal.Weeks}}<tr>{{range .}}<td>{{if .Date}}
          {{if .Count}}<a class="mu-ec-cell" href="#{{$.ID}}-date-{{.Date}}" data-day="{{.Date}}"{{if not .InMonth}} data-outside{{end}}{{if .IsSelected}} data-selected{{end}}{{if .IsToday}} aria-current="date"{{end}} aria-label="{{.Label}}, {{.Count}} {{if eq .Count 1}}event{{else}}events{{end}}">{{template "ec-cell-content" .}}</a>
          {{else}}<span class="mu-ec-cell" data-day="{{.Date}}"{{if not .InMonth}} data-outside{{end}}{{if .IsSelected}} data-selected{{end}}{{if .IsToday}} aria-current="date"{{end}}>{{template "ec-cell-content" .}}</span>{{end}}
        {{end}}</td>{{end}}</tr>{{end}}</tbody>
      </table>
      <p class="mu-ec-legend"><span><i class="mu-ec-dot" aria-hidden="true"></i>Scheduled event</span><span><i class="mu-ec-today-key" aria-hidden="true"></i>Today</span></p>
    </div>
    <aside class="mu-ec-agenda" aria-label="Daily agenda">
      {{range $cal.AgendaDays}}
      <section id="{{$.ID}}-date-{{.Date}}" class="mu-ec-day-panel" data-agenda-date="{{.Date}}"{{if .IsSelected}} data-initial{{end}} aria-labelledby="{{$.ID}}-label-{{.Date}}">
        <div class="mu-ec-panel-heading">
          <h3 id="{{$.ID}}-label-{{.Date}}"><span class="mu-ec-large-day">{{printf "%02d" .Number}}</span><span>{{.Weekday}}<small>{{.MonthLabel}}</small></span></h3>
          <span class="mu-ec-count">{{.Count}} {{if eq .Count 1}}event{{else}}events{{end}}</span>
        </div>
        {{range $i, $event := .Events}}
        <details class="mu-ec-event" data-entry{{if eq $i 0}} open{{end}}>
          <summary>
            <span class="mu-ec-entry-meta"><span class="mu-ec-time">{{if .Time}}<time datetime="{{.Time}}">{{.Time}}</time>{{with .EndTime}} – <time datetime="{{.}}">{{.}}</time>{{end}}{{else}}All day{{end}}</span>{{with .Track}}<span>{{.}}</span>{{end}}</span>
            <span class="mu-ec-entry-title"><strong data-entry-title>{{.Title}}</strong><span>{{template "ec-chevron"}}</span></span>
          </summary>
          <div class="mu-ec-entry-body">
            {{with .ImageURL}}<img src="{{.}}" alt="{{$event.ImageAlt}}" loading="lazy" decoding="async">{{end}}
            {{with .Venue}}<p class="mu-ec-venue">{{template "ec-pin"}}{{.}}</p>{{end}}
            {{with .Description}}<p class="mu-ec-description">{{.}}</p>{{end}}
            {{with .URL}}<a class="mu-ec-link" href="{{.}}">{{or $event.LinkLabel "Event details"}} <span aria-hidden="true">{{template "ec-chevron"}}</span></a>{{end}}
          </div>
        </details>
        {{else}}<p class="mu-ec-empty-message">No events scheduled for this day.</p>{{end}}
      </section>
      {{end}}
      <section class="mu-ec-day-panel" data-empty-day hidden>
        <div class="mu-ec-panel-heading"><h3><span class="mu-ec-large-day" data-empty-number></span><span><span data-empty-weekday></span><small data-empty-month></small></span></h3><span class="mu-ec-count">0 events</span></div>
        <p class="mu-ec-empty-message">No events scheduled for this day.</p>
      </section>
    </aside>
  </div>
  {{if $cal.Events}}<details class="mu-ec-index" data-programme-index>
    <summary class="mu-disclosure">Browse all event dates</summary><ul>{{range $cal.AgendaDays}}{{if .Count}}<li><a href="#{{$.ID}}-date-{{.Date}}">{{.Label}} · {{.Count}} {{if eq .Count 1}}event{{else}}events{{end}}</a></li>{{end}}{{end}}</ul>
  </details>{{end}}
  <span class="mu-sr-only" data-status role="status" aria-atomic="true"></span>
</section>
Component CSS
Component CSS
[data-mono="event-calendar"] {
  --ec-ink: #171717; --ec-line: #cdcdcd; --ec-paper: #f7f7f7;
  --ec-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  width: 100%; min-width: 0; container-type: inline-size; background: var(--ec-paper); color: var(--ec-ink);
}
.mu-ec-mast, .mu-ec-layout, .mu-ec-index { margin-inline: clamp(.9rem, 3.4cqi, 3rem); }
.mu-ec-mast { display: flex; align-items: end; justify-content: space-between; gap: 1rem; padding-block: clamp(1.25rem, 2.2cqi, 2.2rem) clamp(1.2rem, 2cqi, 1.9rem); }
.mu-ec-kicker { display: flex; align-items: center; gap: .55rem; margin: 0 0 .5rem; font: 650 .66rem/1.5 var(--ec-mono); letter-spacing: .08em; text-transform: uppercase; }
.mu-ec-kicker::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; }
.mu-ec-mast h2 { margin: 0; font: 500 clamp(2.65rem, 5.6cqi, 4.65rem)/.99 Georgia, "Times New Roman", serif; letter-spacing: -.067em; overflow-wrap: anywhere; }
.mu-ec-location, .mu-ec-location > span { display: flex; align-items: center; gap: .4rem; }
.mu-ec-location { flex-wrap: wrap; gap: .7rem; color: #505050; font-size: .82rem; }
.mu-ec-location > span + span { padding-inline-start: .7rem; border-inline-start: 1px solid #bdbdbd; font: .69rem/1.2 var(--ec-mono); }
.mu-ec-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 29%); gap: clamp(.8rem, 1.7cqi, 1.55rem); align-items: start; padding-bottom: clamp(1.1rem, 2.7cqi, 2.4rem); }
.mu-ec-month { min-width: 0; border: 1px solid var(--ec-line); border-radius: .9rem; background: #fff; overflow: clip; }
.mu-ec-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; padding: .95rem clamp(.7rem, 1.45cqi, 1.3rem); }
.mu-ec-month-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; }
.mu-ec-month-heading h3 { margin: 0; font: 600 clamp(1.2rem, 2cqi, 1.75rem)/1.15 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.055em; }
.mu-ec-month-heading [data-month-count] { color: #595959; font: .68rem/1.3 var(--ec-mono); white-space: nowrap; }
.mu-ec-pager { display: inline-flex; align-items: center; padding: .13rem; gap: .12rem; background: #f0f0f0; border: 1px solid #d2d2d2; border-radius: 1.4rem; }
.mu-ec-pager button { display: grid; place-items: center; min-width: 1.95rem; height: 1.85rem; padding: 0 .45rem; font-size: .76rem; font-weight: 600; border: 0; border-radius: 1.1rem; background: transparent; }
.mu-ec-pager [data-today] { padding-inline: .7rem; background: #fff; box-shadow: 0 0 0 1px #d4d4d4; }
.mu-ec-pager [data-prev] svg { transform: rotate(180deg); }
.mu-ec-pager button:enabled:hover { background: #ddd; }
.mu-ec-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; }
.mu-ec-table th { padding: .52rem clamp(.35rem, .85cqi, .85rem); border-block: 1px solid var(--ec-line); background: #f0f0f0; font: 600 .65rem/1.2 var(--ec-mono); letter-spacing: .085em; text-transform: uppercase; color: #4e4e4e; }
.mu-ec-table td { position: relative; padding: 0; vertical-align: top; border-bottom: 1px solid var(--ec-line); }
.mu-ec-table td + td { border-inline-start: 1px solid var(--ec-line); }
.mu-ec-table td:nth-last-child(-n+2) { background: #fafafa; }
.mu-ec-cell {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0;
  height: clamp(4.6rem, 6.2cqi, 6.25rem); gap: .38rem; padding: clamp(.36rem,.65cqi,.65rem);
  border: 0; border-radius: 0; background: transparent; text-align: left; text-decoration: none; color: #202020;
}
:is(a,button).mu-ec-cell:hover { background: #ebebeb; }
.mu-ec-day-number { display: inline-grid; place-items: center; min-width: 1.55rem; height: 1.55rem; font: 540 clamp(.9rem, 1.3cqi, 1.15rem)/1 "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.05em; }
.mu-ec-cell[aria-current="date"] .mu-ec-day-number { border: 1px solid currentColor; border-radius: 50%; }
.mu-ec-cell[data-outside] { color: #666; background: #f1f1f1; }
.mu-ec-cell[data-outside] .mu-ec-cell-event { color: #555; }
.mu-ec-cell[data-selected], .mu-ec-cell[data-selected]:hover { color: #fff; background: var(--ec-ink); }
.mu-ec-cell:focus-visible { z-index: 1; outline-offset: -3px; }
.mu-ec-cell-event { display: flex; align-items: start; gap: .32rem; min-width: 0; width: 100%; font: 550 clamp(.64rem,.87cqi,.8rem)/1.2 "Helvetica Neue", Arial, sans-serif; }
.mu-ec-dot { display: inline-block; flex: none; width: .36rem; height: .36rem; border-radius: 50%; background: currentColor; }
.mu-ec-cell-event .mu-ec-dot { margin-top: .22em; }
.mu-ec-cell-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.mu-ec-more { position: absolute; right: .42rem; top: .52rem; color: inherit; font: 600 .63rem/1.4 var(--ec-mono); }
.mu-ec-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: .68rem .9rem; color: #565656; font-size: .7rem; }
.mu-ec-legend > span { display: inline-flex; align-items: center; gap: .38rem; }
.mu-ec-today-key { height: .6rem; width: .6rem; border: 1px solid currentColor; border-radius: 50%; }
.mu-ec-agenda { background: var(--ec-ink); color: #fff; border-radius: .9rem; min-width: 0; }
.mu-ec-day-panel { padding: clamp(.82rem, 1.35cqi, 1.3rem); scroll-margin-block-start: 5rem; }
[data-mono="event-calendar"]:not([data-enhanced]) [data-agenda-date]:not([data-initial]):not(:target),
[data-mono="event-calendar"]:not([data-enhanced]) .mu-ec-agenda:has(:target) [data-initial]:not(:target) { display: none; }
.mu-ec-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .05rem .1rem .95rem; }
.mu-ec-panel-heading h3 { display: flex; align-items: center; gap: .65rem; margin: 0; font: 600 clamp(.96rem, 1.3cqi, 1.12rem)/1.15 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.025em; }
.mu-ec-large-day { font: 470 clamp(2.75rem,4.65cqi,4.25rem)/.95 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.mu-ec-panel-heading small { display: block; margin-top: .24rem; font: .64rem/1.3 var(--ec-mono); color: #c1c1c1; letter-spacing: 0; }
.mu-ec-count { flex: none; border: 1px solid #545454; border-radius: 1rem; padding: .3rem .5rem; font: .6rem/1.15 var(--ec-mono); color: #eee; }
.mu-ec-event { background: #2a2a2a; border: 1px solid #484848; border-radius: .58rem; overflow: clip; }
.mu-ec-event + .mu-ec-event { margin-top: .55rem; }
.mu-ec-event > summary { display: block; list-style: none; padding: .8rem .8rem .72rem; border-radius: inherit; }
.mu-ec-event > summary::-webkit-details-marker { display: none; }
.mu-ec-event > summary:focus-visible { outline-offset: -3px; }
.mu-ec-entry-meta, .mu-ec-entry-title { display: flex; align-items: center; gap: .45rem; }
.mu-ec-entry-meta { flex-wrap: wrap; font: .62rem/1.4 var(--ec-mono); color: #d1d1d1; }
.mu-ec-time { font-weight: 650; color: #fff; }
.mu-ec-entry-meta > span + span::before { content: "/"; color: #a3a3a3; margin-right: .45rem; }
.mu-ec-entry-title { margin-top: .35rem; align-items: baseline; justify-content: space-between; }
.mu-ec-entry-title strong { font: 600 clamp(1rem, 1.4cqi, 1.3rem)/1.18 "Helvetica Neue", Arial, sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.mu-ec-entry-title > span { align-self: center; flex: none; display: grid; place-items: center; color: #c5c5c5; }
.mu-ec-entry-title svg { transform: rotate(90deg); width: 14px; height: 14px; }
.mu-ec-event[open] > summary .mu-ec-entry-title svg { transform: rotate(-90deg); }
.mu-ec-entry-body { padding: 0 .8rem .82rem; }
.mu-ec-entry-body img { display: block; width: 100%; aspect-ratio: 2.5; object-fit: cover; border-radius: .32rem; background: #bdbdbd; filter: grayscale(1); }
.mu-ec-venue { display: flex; align-items: center; gap: .3rem; color: #d2d2d2; font: .68rem/1.35 var(--ec-mono); }
.mu-ec-entry-body img + .mu-ec-venue, .mu-ec-entry-body img + .mu-ec-description { margin-top: .7rem; }
.mu-ec-venue svg { flex: none; }
.mu-ec-description { margin: .42rem 0 0; font-size: .8rem; line-height: 1.5; color: #e5e5e5; }
.mu-ec-link { display: inline-flex; align-items: center; gap: .25rem; margin-top: .65rem; font-size: .75rem; font-weight: 600; color: #fff; text-underline-offset: .2rem; }
.mu-ec-link span, .mu-ec-link svg { display: block; width: .8rem; height: .8rem; }
.mu-ec-empty-message { border-top: 1px solid #4a4a4a; padding: 1rem 0 .2rem; color: #ccc; font-size: .84rem; }
.mu-ec-index { padding: 0 0 1rem; }
.mu-ec-index ul { padding-left: 1.3rem; }
.mu-ec-index a { text-underline-offset: .15em; }
@container (max-width: 47rem) {
  .mu-ec-layout { grid-template-columns: minmax(0, 1fr); }
  .mu-ec-agenda { width: 100%; }
  .mu-ec-entry-body img { max-height: 12rem; }
}
@container (max-width: 32rem) {
  .mu-ec-mast { align-items: start; flex-direction: column; gap: .6rem; }
  .mu-ec-toolbar { padding: .7rem .6rem; gap: .4rem; }
  .mu-ec-month-heading { gap: .16rem; align-items: start; flex-direction: column; }
  .mu-ec-pager button { min-width: 1.85rem; height: 1.95rem; }
  .mu-ec-table th { text-align: center; padding: .47rem .1rem; font-size: .58rem; }
  .mu-ec-cell { height: 3.18rem; align-items: center; gap: .18rem; padding: .24rem .05rem; }
  .mu-ec-cell-event { justify-content: center; }
  .mu-ec-cell-title { display: none; }
  .mu-ec-more { font-size: .49rem; top: auto; bottom: .21rem; right: .16rem; }
  .mu-ec-legend { padding: .55rem .7rem; }
  .mu-ec-entry-body img { aspect-ratio: 2.8; }
}
@media (forced-colors: active) {
  .mu-ec-cell[data-selected] { outline: 2px solid Highlight; outline-offset: -3px; }
  .mu-ec-dot { background: CanvasText; forced-color-adjust: none; }
  .mu-ec-agenda, .mu-ec-event { border: 1px solid CanvasText; }
}
JavaScript module
JavaScript module
// A civil day is represented at UTC midnight, so adding a day is independent
// of the visitor's locale and daylight-saving transitions.
const DAY = 86400000;
const firstDate = Date.parse('0001-01-01T00:00:00Z');
const lastDate = Date.parse('9999-12-31T00:00:00Z');
const monthName = new Intl.DateTimeFormat('en-US', {month: 'long', year: 'numeric', timeZone: 'UTC'});
const fullDate = new Intl.DateTimeFormat('en-US', {dateStyle: 'full', timeZone: 'UTC'});
const weekdayName = new Intl.DateTimeFormat('en-US', {weekday: 'long', timeZone: 'UTC'});

function iso(date) {
  return date.toISOString().slice(0, 10);
}

function civil(value) {
  if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return null;
  const date = new Date(value + 'T00:00:00Z');
  return date >= firstDate && date <= lastDate && iso(date) === value ? date : null;
}

function clamp(date) {
  return new Date(Math.max(firstDate, Math.min(lastDate, date.getTime())));
}

function monthStep(from, amount) {
  const target = new Date(from);
  target.setUTCMonth(target.getUTCMonth() + amount + 1, 0);
  target.setUTCDate(Math.min(from.getUTCDate(), target.getUTCDate()));
  return clamp(target);
}

function weekday(date) {
  return (date.getUTCDay() + 6) % 7;
}

function weeksOfMonth(selected) {
  const first = new Date(selected);
  first.setUTCDate(1);
  const start = first.getTime() - weekday(first) * DAY;
  const last = new Date(first);
  last.setUTCMonth(last.getUTCMonth() + 1, 0);
  const end = last.getTime() + (6 - weekday(last)) * DAY;
  const weeks = [];
  for (let week = start; week <= end; week += 7 * DAY) {
    const days = [];
    for (let i = 0; i < 7; i++) {
      const time = week + i * DAY;
      days.push(time < firstDate || time > lastDate ? null : new Date(time));
    }
    weeks.push(days);
  }
  return weeks;
}

function eventClock(zone) {
  const options = {timeZone: zone || 'UTC', year: 'numeric', month: '2-digit', day: '2-digit'};
  let format;
  try {
    format = new Intl.DateTimeFormat('en-US', options);
  } catch {
    format = new Intl.DateTimeFormat('en-US', {...options, timeZone: 'UTC'});
  }
  return () => {
    const parts = Object.fromEntries(format.formatToParts(new Date()).map(part => [part.type, part.value]));
    return [parts.year.padStart(4, '0'), parts.month, parts.day].join('-');
  };
}

function eventCount(n) {
  return n + (n === 1 ? ' event' : ' events');
}

export function mount(root) {
  const find = name => root.querySelector('[data-' + name + ']');
  const grid = find('grid');
  if (!grid) return;
  const doc = root.ownerDocument;
  const nav = find('calendar-nav'), previous = find('prev'), next = find('next');
  const monthHeading = find('month-label'), monthCount = find('month-count');
  const empty = find('empty-day'), status = find('status');
  const todayKey = eventClock(root.dataset.zone);
  const agendas = new Map(), monthCounts = new Map();
  const buttons = new Map();
  let selected = '', visibleMonth = '', lastToday = '';
  let initial = civil(root.dataset.selected) || civil(todayKey());
  for (const section of root.querySelectorAll('[data-agenda-date]')) {
    const key = section.dataset.agendaDate;
    const entries = section.querySelectorAll('[data-entry]');
    const firstTitle = entries[0]?.querySelector('[data-entry-title]')?.textContent.trim() || '';
    agendas.set(key, {section, count: entries.length, firstTitle});
    const month = key.slice(0, 7);
    monthCounts.set(month, (monthCounts.get(month) || 0) + entries.length);
    if (section.id && doc.location?.hash === '#' + section.id) initial = civil(key) || initial;
    section.hidden = true;
    const firstDetails = section.querySelector('details');
    if (firstDetails && !section.querySelector('details[open]')) firstDetails.open = true;
  }

  function span(className, text) {
    const element = doc.createElement('span');
    element.className = className;
    if (text) element.textContent = text;
    return element;
  }

  function renderMonth(date) {
    visibleMonth = iso(date).slice(0, 7);
    buttons.clear();
    const fragment = doc.createDocumentFragment();
    for (const week of weeksOfMonth(date)) {
      const row = doc.createElement('tr');
      for (const value of week) {
        const cell = row.insertCell();
        if (!value) continue;
        const key = iso(value), agenda = agendas.get(key);
        const count = agenda?.count || 0;
        const button = doc.createElement('button');
        button.type = 'button';
        button.className = 'mu-ec-cell';
        button.dataset.day = key;
        button.toggleAttribute('data-outside', value.getUTCMonth() !== date.getUTCMonth());
        button.tabIndex = -1;
        button.setAttribute('aria-pressed', 'false');
        button.setAttribute('aria-label', fullDate.format(value) + ', ' + eventCount(count) +
          (agenda?.firstTitle ? ', ' + agenda.firstTitle : ''));
        button.append(span('mu-ec-day-number', String(value.getUTCDate())));
        if (count) {
          const event = span('mu-ec-cell-event');
          event.append(span('mu-ec-dot'), span('mu-ec-cell-title', agenda.firstTitle));
          button.append(event);
          if (count > 1) button.append(span('mu-ec-more', '+' + (count - 1)));
        }
        cell.append(button);
        buttons.set(key, button);
      }
      fragment.append(row);
    }
    grid.replaceChildren(fragment);
    monthHeading.textContent = monthName.format(date);
    if (monthCount) monthCount.textContent = eventCount(monthCounts.get(visibleMonth) || 0);
    previous.disabled = visibleMonth === '0001-01';
    next.disabled = visibleMonth === '9999-12';
  }

  function select(date, focus = false, announce = true) {
    const key = iso(date);
    if (visibleMonth !== key.slice(0, 7)) renderMonth(date);
    const today = todayKey();
    if (lastToday !== today) buttons.get(lastToday)?.removeAttribute('aria-current');
    buttons.get(today)?.setAttribute('aria-current', 'date');
    lastToday = today;
    if (selected !== key) {
      const old = buttons.get(selected);
      if (old) {
        old.tabIndex = -1;
        old.removeAttribute('data-selected');
        old.setAttribute('aria-pressed', 'false');
      }
      const oldAgenda = agendas.get(selected);
      if (oldAgenda) oldAgenda.section.hidden = true;
    }
    selected = key;
    root.dataset.selected = key;
    const active = buttons.get(key);
    active.tabIndex = 0;
    active.setAttribute('data-selected', '');
    active.setAttribute('aria-pressed', 'true');
    const agenda = agendas.get(key);
    if (agenda) agenda.section.hidden = false;
    empty.hidden = Boolean(agenda);
    if (!agenda) {
      find('empty-number').textContent = String(date.getUTCDate()).padStart(2, '0');
      find('empty-weekday').textContent = weekdayName.format(date);
      find('empty-month').textContent = monthName.format(date);
    }
    if (announce && status) {
      status.textContent = fullDate.format(date) + ', ' + eventCount(agenda?.count || 0) + '.';
    }
    if (focus) active.focus();
  }

  grid.addEventListener('click', event => {
    const button = event.target.closest('button[data-day]');
    if (button) select(civil(button.dataset.day), true);
  });
  grid.addEventListener('keydown', event => {
    const button = event.target.closest('button[data-day]');
    if (!button || event.altKey || event.ctrlKey || event.metaKey) return;
    const date = civil(button.dataset.day);
    const column = weekday(date);
    const jumps = {ArrowLeft: -1, ArrowRight: 1, ArrowUp: -7, ArrowDown: 7, Home: -column, End: 6 - column};
    if (Object.hasOwn(jumps, event.key)) {
      event.preventDefault();
      select(clamp(new Date(date.getTime() + jumps[event.key] * DAY)), true);
    } else if (event.key === 'PageUp' || event.key === 'PageDown') {
      event.preventDefault();
      select(monthStep(date, event.key === 'PageUp' ? -1 : 1), true);
    }
  });
  previous.addEventListener('click', () => select(monthStep(civil(selected), -1)));
  next.addEventListener('click', () => select(monthStep(civil(selected), 1)));
  find('today').addEventListener('click', () => select(civil(todayKey())));
  select(initial, false, false);
  nav.hidden = false;
  const index = find('programme-index');
  if (index) index.hidden = true;
  root.setAttribute('data-enhanced', '');
}
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 Ready-to-use module

HTML head
<link rel="stylesheet" href="./base.css">
<link rel="stylesheet" href="./event-calendar.css">
<script type="module" src="./event-calendar.js"></script>

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 event-calendar
Example properties (JSON)
example.json
{
  "Events": [
    {
      "Date": "2027-02-26",
      "Description": "Pull a first impression from the studio press and pin your proof beside last month’s edition.",
      "EndTime": "18:00",
      "Time": "16:00",
      "Title": "Proofing afternoon",
      "Track": "Open studio",
      "Venue": "Print room"
    },
    {
      "Date": "2027-03-02",
      "Description": "Jo Leone builds a load-bearing bridge from a sheet of card. Fold your own and see how much it holds.",
      "EndTime": "12:00",
      "ImageAlt": "Pleated white card forms a ridge of alternating light and shadow.",
      "ImageURL": "../components/events/form-function/paper-study.webp",
      "Time": "10:30",
      "Title": "Paper structures",
      "Track": "Workshop",
      "Venue": "Studio A"
    },
    {
      "Date": "2027-03-06",
      "Description": "Browse a cabinet of wood and metal type alongside prints made from the same blocks.",
      "Title": "The type cabinet",
      "Track": "Exhibition",
      "Venue": "Print room"
    },
    {
      "Date": "2027-03-10",
      "Description": "Sam Okafor hangs a series of wire mobiles and compares how each one settles.",
      "EndTime": "18:30",
      "ImageAlt": "Thin wire arms support a balanced group of metal disks.",
      "ImageURL": "../components/events/form-function/balance.webp",
      "Time": "17:30",
      "Title": "Motion studies",
      "Track": "Talk",
      "Venue": "Studio A"
    },
    {
      "Date": "2027-03-12",
      "Description": "Leah Chen takes apart a desk lamp to show how two springs change the feel of a familiar tool.",
      "EndTime": "09:45",
      "ImageAlt": "An articulated black desk lamp casts a long shadow.",
      "ImageURL": "../components/events/form-function/work-light.webp",
      "LinkLabel": "View conference programme",
      "Time": "09:00",
      "Title": "The shape of a good tool",
      "Track": "Keynote",
      "URL": "../components/event-schedule.html",
      "Venue": "Main hall"
    },
    {
      "Date": "2027-03-12",
      "Description": "Join Iris Tan at the proofing press. Compare a letter set in wood with the same letter set in metal.",
      "EndTime": "13:55",
      "Time": "13:15",
      "Title": "Open type studio",
      "Track": "Open studio",
      "Venue": "Print room"
    },
    {
      "Date": "2027-03-13",
      "Description": "Iris Tan traces a worn letterform from a drawer of type to the outline of a digital font.",
      "EndTime": "10:45",
      "ImageAlt": "Worn letterpress blocks show the reversed faces of carved letters.",
      "ImageURL": "../components/events/form-function/letterforms.webp",
      "Time": "10:00",
      "Title": "Type with a past",
      "Track": "Keynote",
      "Venue": "Main hall"
    },
    {
      "Date": "2027-03-17",
      "Description": "Cut and score three paper hinges, then test their resistance side by side.",
      "EndTime": "16:00",
      "Time": "14:00",
      "Title": "Hinge workshop",
      "Track": "Workshop",
      "Venue": "Model shop"
    },
    {
      "Date": "2027-03-23",
      "Description": "Hear a day in the workshop through recordings of the press, the paper cutter, and the doors at closing time.",
      "EndTime": "19:00",
      "Time": "18:00",
      "Title": "Field recordings",
      "Track": "Listening session",
      "Venue": "Studio B"
    },
    {
      "Date": "2027-03-26",
      "Description": "Bring an unfinished object and a question. The studio team will make the next iteration with you.",
      "EndTime": "17:00",
      "Time": "15:00",
      "Title": "Open workbench",
      "Track": "Open studio",
      "Venue": "Model shop"
    },
    {
      "Date": "2027-03-30",
      "Description": "Bring one small print to trade. Each maker will give a short account of how their edition came together.",
      "EndTime": "18:00",
      "Time": "17:00",
      "Title": "Print exchange",
      "Track": "Meetup",
      "Venue": "Courtyard"
    },
    {
      "Date": "2027-04-01",
      "Description": "Assemble a studio stool with hand tools and take a measured drawing home.",
      "EndTime": "12:00",
      "Time": "10:00",
      "Title": "Bench assembly",
      "Track": "Workshop",
      "Venue": "Model shop"
    }
  ],
  "Location": "Singapore",
  "SelectedDate": "2027-03-12",
  "Subtitle": "Form \u0026 Function",
  "TimeZone": "Asia/Singapore",
  "TimeZoneLabel": "SGT",
  "Title": "Studio calendar"
}