EmDash blocks
Tier 3 on EmDash — the Portable Text blocks an editor or agent can insert, and which framework pattern each one renders.
Tier 3 on EmDash ships the patterns as blocks in the editor's insert menu, so a non-technical author builds a page from the design system without touching markup. Each block is a thin adapter over the matchingAstro component, so the HTML and the no-JS fallback are written once.
Siblings of the Bricks elementsand the Astro components — chosen by platform, never ranked against each other.
vitops_badges
- Pattern
badge- Renders
- tier-1 markup
- Recommended call
.badge— a STATIC label. Usetagif it is dismissable or editable.- Also in
- CSS
vitops_banner
- Pattern
banner- Renders
- tier-1 markup
- Recommended call
.banner; wrap in<wc-dismissable>for a close button that works.- Also in
- CSS
vitops_actionLink
- Pattern
btn- Renders
- tier-1 markup
- Recommended call
<button>gets it with no class;.btncarries it to other tags.fill: false, so states drivecolor.- Also in
- CSS
vitops_callout
- Pattern
callout- Renders
- tier-1 markup
- Recommended call
.callout.tonewith a.callout__bodyand.callout__actions. A call-to-action band that stays on the page — NOTbanner, which is a dismissible announcement.- Also in
- CSS
vitops_cards
- Pattern
card- Renders
<Cards />- Recommended call
<Cards>— it emits<wc-cards>itself, so do NOT add your own wrapper.<Subgrid>is the same grid without the click enhancement.- Also in
- CSS, Web component, Astro
vitops_carousel
- Pattern
carousel- Renders
<Carousel />- Recommended call
<Carousel slides={…} label="…" />— it emits<wc-carousel>itself, so do NOT add your own wrapper..carouselis the shell and.carousel__trackthe scroller; addloopfor the cloned infinite strip (autoplayimplies it).- Also in
- CSS, Web component, Astro, Bricks
vitops_copyButton
- Pattern
copy- Renders
- tier-1 markup
- Recommended call
<wc-copy value="…">around the text to copy; the element renders its own button and announces "Copied" or "Copy failed" (copied-label/failed-labelset the words).- Also in
- CSS, Web component, Bricks
vitops_stats
- Pattern
counter- Renders
<Counter />- Recommended call
<Counter value="94%" />— it emits<wc-counter>itself, so do NOT add your own wrapper. The final value is parsed from the fallback text, never passed separately.- Also in
- CSS, Web component, Astro
vitops_actionLink
- Pattern
cta- Renders
- tier-1 markup
- Recommended call
.ctaon any element — usually<a>, since a CTA navigates. Filled, with role variants.- Also in
- CSS
vitops_details
- Pattern
details- Renders
<Details />- Recommended call
<Details>— or hand-write<details>. No JS at either tier;::details-contentanimates in CSS.- Also in
- CSS, Astro
vitops_accordion
- Pattern
details- Renders
<Details />- Recommended call
<Details>— or hand-write<details>. No JS at either tier;::details-contentanimates in CSS.- Also in
- CSS, Astro
vitops_banner
- Pattern
dismissable- Renders
- tier-1 markup
- Recommended call
<wc-dismissable>around any banner/notification containing a[data-dismiss]control.- Also in
- CSS, Web component, Bricks
vitops_embed
- Pattern
embed- Renders
- tier-1 markup
- Recommended call
.embedaround an<iframe class="embed__frame" data-consent="marketing" data-consent-src="…">with NOsrc, and a.embed__placeholder. The consent runtime assigns the address after the grant; the placeholder holds a real link. Never give the iframe a livesrc.- Also in
- CSS
vitops_entries
- Pattern
entries- Renders
<Entries />- Recommended call
<Entries entries={[{ heading, pairs: [{ term, value }] }]} />— it emits<wc-entries>itself, so do NOT add your own wrapper. By hand:<wc-entries>around<h3>+<dl>pairs. The tier-2 exemplar: semantic pairs with no JS, a table with it.- Also in
- CSS, Web component, Astro, Bricks
vitops_form
- Pattern
forms- Renders
<ContactForm />- Recommended call
- Wrap text controls in
.form-groupor.input-group— a bare<input>gets browser defaults. For a contact or enquiry form use<ContactForm />(name, email, phone, message, orfields={[{ label, type, required }]}): a real<form method="post">tocreateConversionRoute()with the honeypot and, whensite.security.turnstile.siteKeyis set, Turnstile. Do not hand-write that form: the route drops a field namedphone(it is the tel-click payload) and treatswebsite/honeypotas bot traps, and<ContactForm>submits a phone astel. In EmDash,vitops_formis the same form with editor-defined fields. - Also in
- CSS, Astro
vitops_gallery
- Pattern
gallery- Renders
<Gallery />- Recommended call
<Gallery images={…} label="…" />— it emits<wc-gallery>wrapping a<Carousel />(which emits its own<wc-carousel>) itself, so do NOT add your own wrapper around either. Each thumbnail is a plain<a href="#slide-id">into the carousel's own<li id="slide-id">inside a single<dialog class="lightbox-dialog">(seelightbox), so it is a working modal lightbox — WITH prev/next — before any script runs. Stepping between images is the carousel's job, not the gallery's.- Also in
- CSS, Web component, Astro
vitops_imageCompare
- Pattern
image-compare- Renders
- tier-1 markup
- Recommended call
<wc-image-compare>with two images. Both are visible without JS.- Also in
- CSS, Web component, Bricks
vitops_actionLink
- Pattern
link- Renders
- tier-1 markup
- Recommended call
<a>gets it at zero specificity;.linkfor other tags..stretched-linkmakes one link cover its positioned ancestor (whole-card click, no JS — but the card text stops being selectable);.raisedlifts content back above that overlay.- Also in
- CSS
vitops_location
- Pattern
location-pages- Renders
<LocationPage />,<ServicePage />- Recommended call
<LocationPage location={…} defaultLocale>and<ServicePage service={…} defaultLocale providerName>: oneorganization.locations/organization.servicesentry as a page (name, address, hours table, photos, offers) plus itsLocalBusiness/ServiceJSON-LD, with a slot for your own copy. In EmDash,vitops_locationplaces one location in content (a build-time import oforganization.locations,virtual:getvitops/organization, served byvitops()). Nothing scaffolds the route: writesrc/pages/locations/[slug].astrowithgetStaticPaths()over the record andresolveSlug()from@getvitops/astro/schemas/graph-adapters.ts(the idiom is in LocationPage's docblock). The key of the record, not theslug, is the entry's identity.- Also in
- Astro
vitops_logos
- Pattern
logos- Renders
- tier-1 markup
- Recommended call
<ul class="logos">of.logos__itemimages (alt text = the name), or.logos__nametext when there is no image. A still grid;marqueeis the scrolling version.- Also in
- CSS
vitops_marquee
- Pattern
marquee- Renders
<Marquee />- Recommended call
<Marquee>around one.marquee__content, or<wc-marquee>by hand. Scrolls via CSS alone; JS only removes the seam.- Also in
- CSS, Web component, Astro
vitops_testimonial
- Pattern
pull-quote- Renders
- tier-1 markup
- Recommended call
.pull-quote. Note the type rolequoteis separate. In EmDash,vitops_testimonialis a quote with attribution and optional stars; itsReviewJSON-LD is opt-in, because Google ignores reviews a business writes about itself.- Also in
- CSS
vitops_reviews
- Pattern
review- Renders
<ReviewCard />- Recommended call
<ReviewCard review={…} />— one card, fromvitops reviews'.vitops/reviews.jsoncache. Put several inside<Carousel>slides or<Marquee>items; there is no group component and nowc-review. In EmDash,vitops_reviewsis that whole row: it reads the cache as a build-time import (virtual:getvitops/reviews, served byvitops(); empty when the file is absent), picks reviews withselectReviews(), and lays them out as a grid, carousel or marquee. A new review appears aftervitops reviewsis re-run, committed and the site rebuilt.- Also in
- CSS, Astro
vitops_section
- Pattern
section- Renders
- tier-1 markup
- Recommended call
.section.region>.centered>.section__innerholding.section__head(kicker, heading, sub) and.section__body..section--splitputs the head beside the body when wide..section--backdropwith a.section__backdropimage puts a decorative photo behind the band, darkened by the tone solid. In EmDash it is a block TYPE (vitops_section) with a Portable Text body that accepts any other block — seevitopsBlockTypes(). In a Portable Text field, where a block cannot hold blocks,vitops_bandis a marker that opens a section around the blocks after it; render the field with<VitopsContent>(@getvitops/emdash/astro).- Also in
- CSS
vitops_band
- Pattern
section- Renders
- tier-1 markup
- Recommended call
.section.region>.centered>.section__innerholding.section__head(kicker, heading, sub) and.section__body..section--splitputs the head beside the body when wide..section--backdropwith a.section__backdropimage puts a decorative photo behind the band, darkened by the tone solid. In EmDash it is a block TYPE (vitops_section) with a Portable Text body that accepts any other block — seevitopsBlockTypes(). In a Portable Text field, where a block cannot hold blocks,vitops_bandis a marker that opens a section around the blocks after it; render the field with<VitopsContent>(@getvitops/emdash/astro).- Also in
- CSS
vitops_nav
- Pattern
sitenav- Renders
<SiteNav />,<SiteFooter />- Recommended call
.sitenavwith--bp-*and a drawer direction.<details>+ Invoker Commands, no JS. In Astro:<SiteNav {...await loadNavMenus(getMenu)} />renders EmDash menuprimary(the default: dropdowns frommd, drawer below) and, if they exist,primary-mobile(depth-1 nav belowmd) andprimary-mega(mega panels fromxl) — adding the menu in the admin is the whole change. An item'stitleAttris its description. Per-site behaviour lives insite.chrome.nav—<SiteNav {...nav} {...resolveNavOptions(site)} />setscompact(drawer|dropdown: an anchored, columnar panel under the toggle),drawerSide, the breakpoints and depths. For a mega panel's featured column passmegaPanel={VitopsMegaPanel}(@getvitops/emdash/astro): it renders the widget areamega-<item slug>(or the item'smega-area:<name>class) and nothing when there is none.<SiteFooter sitemap legal name config={site}>rendersfooter-sitemap+footer-legal+ the copyright line, plusorganization.logoand a contact column (address, tel:/mailto: links, one location's hours, profile links) from the same config: nothing to hand-write,contact={false}/logo={false}to omit, abrandslot to replace the logo,locationto pick whose hours. For a menu inside page content (a site map, a section's links, footer-style columns) use.navlist— plain nested lists,--inline/--columns— or, in EmDash, thevitops_navblock (menu, layoutlist|inline|columns|sitenav, depth 1–3, heading, tone). Name each<nav>uniquely: the header isPrimaryand the footerSite map/Legal, and the block never reuses those.- Also in
- CSS, Astro, Bricks
vitops_hero
- Pattern
split- Renders
- tier-1 markup
- Recommended call
.splitplus a ratio class. Pure CSS;md-split-1-2for the responsive form.- Also in
- CSS, Bricks
vitops_stats
- Pattern
stats- Renders
- tier-1 markup
- Recommended call
<ul class="stats">of.stats__item, each figure a<Counter>..stats--tilesadds.stats__groupand.stats__delta;data-state="up|down"colours the delta through the success/danger roles.- Also in
- CSS
vitops_steps
- Pattern
steps- Renders
- tier-1 markup
- Recommended call
<ol class="steps tone">of<li class="steps__item">each holding a.steps__bodywith a real heading. The number is a CSS counter and the connector line a pseudo-element;.steps--rowruns it sideways when wide;.steps--cardsputs each step in a card and.steps--animateddraws the connector on scroll. The marker size and card geometry are thestepsentry ofpatterns.items(--steps-marker-size, thecontentgroup tokens).- Also in
- CSS
vitops_pricing
- Pattern
subgrid- Renders
<Subgrid />- Recommended call
<Subgrid>— emits<ul class="subgrid" role="list">; author<li class="card subgrid-card">items yourself, so tranches align across the set.- Also in
- CSS, Astro
vitops_tabs
- Pattern
tabs- Renders
<Tabs />- Recommended call
<Tabs items={[{ label, body }]} />, or<Tabs>around your own<section><h3>…</h3>…</section>panels. With no JS every panel is readable under its heading.orientation="vertical"runs the list down the side;hashwrites the selected panel into the URL;selectedsets the first tab. Do NOT wrap it in<wc-tabs>: it emits its own. By hand:<wc-tabs class="tabs">around<section>s that each open with a heading.- Also in
- CSS, Web component, Astro
vitops_tree
- Pattern
tree- Renders
<Tree />- Recommended call
<Tree items={…} />— it emits<wc-tree>itself, so do NOT add your own wrapper. In EmDash,vitops_treetakes an indented outline (one node per line, indent to nest,| badgefor a chip) and builds the tree from it; it never setsdescriptionHtml.- Also in
- CSS, Web component, Astro
vitops_form
- Pattern
turnstile- Renders
- tier-1 markup
- Recommended call
<wc-turnstile sitekey="…">inside a<form>, around a paragraph saying the spam check needs JavaScript. Pair it withcreateConversionRoute({ turnstile }); thevitops_formblock does both.- Also in
- CSS, Web component
vitops_widgetArea
- Pattern
widget-area- Renders
- tier-1 markup
- Recommended call
- Editor-managed regions:
<VitopsWidgetArea name="footer-columns" />(@getvitops/emdash/astro) renders an area from Widgets in the admin — titled groups, a menu as a labelled<nav>, content as Portable Text. In a page, thevitops_widgetAreablock places one. An area holding acore:*component widget falls back to EmDash's own renderer, and an area cannot hold another. Prerendered pages show an edit after the next deploy. - Also in
- CSS
Web components with no block, on purpose
Every shipped wc-* element has a block above or a stated reason below; the manifest's emdashExempt field is the source and a test fails if one is silent.
wc-color-field— configuration tooling for a site owner, emitted by `renderProjectionHtml` rather than placed by an editorwc-color-scheme-toggle— site chrome (header/footer), not page content; belongs in the nav/layoutwc-combobox— a form control, composed inside a form (vitops_form) rather than placed as page contentwc-config-form— configuration tooling for a site owner, not page content a visitor reads or an editor placeswc-config-preview— configuration tooling for a site owner, not page content a visitor reads or an editor placeswc-consent— site chrome: the layout renders `<CookieConsent />` once; an editor-placed copy would duplicate the gatewc-contrast-toggle— site chrome (masthead/footer), not page content: it must be on every page to count as a WCAG G174 alternative, which a per-page editor block cannot guaranteewc-field— a form control wrapper, composed inside a form (vitops_form) rather than placed as page contentwc-format— inline text formatting, used inside other content rather than placed as a block of its ownwc-multifield— repeats rows a visitor adds at submit time (several phone numbers, guests); `vitops_form` has a fixed, editor-defined field list and no such field typewc-notifications— site chrome: the layout renders one `<Notifications />` in the same place on every page, like `<CookieConsent />`; an editor-placed copy would duplicate the regionwc-range— a form control, composed inside a form (vitops_form) rather than placed as page contentwc-split-panel— app UI (resizable panes), not editorial content; an editor does not drag-resize a published pagewc-stepper— onboarding and configuration flow for a site owner, not page content an editor placeswc-theme-editor— tooling, not content; it is mounted in the EmDash admin by `designSystemEditor`, never in a pagetooltip— an affordance on a control, not content an editor places: a block would need the control it explains
Repeating patterns (cards, gallery, accordion, marquee, carousel slides) are repeater fields. A pattern that must contain other blocks cannot be a Portable Text block: vitops_sectionis a block type with a Portable Text body instead — see@getvitops/emdash.