Sequoia version 0.5.7 adds a new component to the existing sequoia-subscribe script:

<sequoia-recommend></sequoia-recommend>

This adds a new button with a heart, star, or thumbs up SVG image that will create a site.standard.graph.recommend record that can be shared across sites like leaflet.pub, pckt.blog, and more.

Screenshot of new Recommend button along with existing Comment button

The sequoia-recommend component is defined in the existing sequoia-subscribe.js file because it shares a lot in common with the sequoia-subscribe button I added previously. I didn’t want to change the file name and break compatibility, but did refactor it to avoid duplication despite being in the same file.

Leaflet was, up until recently, creating pub.leaflet.interactions.recommend records but now is creating site.standard.graph.recommend records. It still seems to support enumerating the latter for compatibility.

Customization

Like sequoia-subscribe, it will discover the site.standard.document from a <link rel="site.standard.document"> element or you can specify it. It also supports limited CSS styling via the container part e.g.,

sequoia-recommend::part(container) {
  /* ... */
}

For more information about customizing the Recommend button, see sequoia.pub.