Etch component
Event Card 1
Event card with a month, day and year block beside the title, a short summary and a details label. The title link covers the whole card.
Documentation
An event card: a date block with the month, day and year beside the title, a short summary, an optional time and place, and a details label. Stack a few for a list of upcoming events.
How to use it
- Set Title, Link and Date. The date takes a
YYYY-MM-DDvalue, such as2026-10-15, and defaults to today. - Add a time to the date to show it after the summary:
2026-10-15 18:00:00reads "Thursday, 6:00 PM". A date without a time shows no time. - Midnight (
00:00) means the time isn't set yet: it reads "Thursday, time to be announced", with the words from Time To Be Announced. - Place adds the place with a pin icon, beside the time. Leave it empty to hide it.
- Turn off Show Year to hide the year in the date block.
- Excerpt is the summary, and the CTA group's Label the label at the end, such as "Event Details". Leave either one empty to hide it.
Good to know
- The title's link covers the whole card, so the label is a MAC CTA 2 without a link, and the focus ring goes around the card.
- The time prints as typed, with no time zone to set. Dates are read at noon UTC, so they show the right day on sites west of UTC.
- The icons are hidden from screen readers, and the time sits in a
timeelement with itsdatetime. - The time and the place share one row, which wraps when the card runs out of room.
- On narrow screens the date sits on one line above the text.
--mac-event-card-1-date-widthsets the date block's width.