npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@htmlbricks/hb-paragraps-around-image-cell

v0.76.5

Published

One paragraph tile with Bootstrap icon, optional title as external link or key-triggered control (dispatches paragraphPressed with key), and body text clamped to max_lines for consistent height inside paragraps-around-image layouts.

Readme

hb-paragraps-around-image-cell — integrator guide

Category: content · Tags: content · Package: @htmlbricks/hb-paragraps-around-image-cell

Summary

hb-paragraps-around-image-cell renders a single content tile: a Bootstrap icon, an optional title row (plain text, external link, or interactive control), and a body paragraph whose height is limited by a line clamp so tiles stay visually consistent in multi-column layouts. It is designed to sit inside hb-paragraps-around-image (the parent “paragraphs around image” layout) but can be used on its own wherever you need a compact icon + text block.

Custom element

<hb-paragraps-around-image-cell></hb-paragraps-around-image-cell>

Attributes (snake_case, string values from HTML)

Web component attributes are always strings. Pass structured data as JSON on paragraph, and numeric limits as their string form (for example "8").

| Attribute | Required | Description | |-----------|----------|-------------| | paragraph | No | JSON string (or object from JS) describing the tile. Parsed in the component; missing or invalid values may not render. | | max_lines | No | Maximum number of lines for the body text clamp. Coerced to a number internally; default 8 if omitted. | | id | No | Optional host id (standard HTML). |

The authoring TypeScript Component type also lists an optional style field; the current implementation does not wire a style prop into the markup, so prefer styling the host from the light DOM (selectors on the custom element) or Bulma variables below.

paragraph object shape

The paragraph value matches the shared Paragraphs type (same family as the parent hb-paragraps-around-image items):

| Field | Type | Description | |-------|------|-------------| | text | string | Body copy (required). | | title | string (optional) | Heading row above the body. If omitted, only the icon and body are shown. | | icon | string (optional) | Bootstrap Icons name without the bi- prefix (the template uses class="bi bi-{icon}"). | | link | string (optional) | If set together with title, the title is rendered as an external link (target="_blank") using link styling. | | key | string (optional) | If title is set and link is not, and key is set, the title row becomes an underlined, clickable control. A click dispatches paragraphPressed with this key in the event detail. |

Title row rules (in order):

  1. link present → title is a normal anchor to link.
  2. Else key present → title is clickable and emits paragraphPressed.
  3. Else → title is plain bold text.

If paragraph is missing or not an object after parsing, the component logs a warning and renders nothing.

Events

Listen for the following custom event on the element (or on a parent in the bubbling phase):

| Event | detail | When | |-------|-----------|------| | paragraphPressed | { key: string } | User activates the title control when paragraph.key is set (and paragraph.link is not). |

Styling

Bulma CSS variables

The host uses the shared Bulma web-component theme. From the light DOM you can override Bulma variables on :host or ancestors; see Bulma CSS variables.

| Variable | Role | |----------|------| | --bulma-text | Body and non-link titles. | | --bulma-link | Linked title (paragraph.link). | | --bulma-text-strong | Bold title row. | | --bulma-block-spacing | Vertical rhythm when nested in parent column layouts. |

Icons

Bootstrap Icons are loaded for this component (font CSS). Ensure paragraph.icon matches an icon name from the Bootstrap Icons set.

Layout notes

The inner layout uses fixed inline flex/spacing for the icon column and text column. :host is display: block. There are no exposed ::part() hooks and no slots.

Examples

Clickable title (dispatches paragraphPressed)

<hb-paragraps-around-image-cell
  paragraph='{"text":"Supporting copy for this section.","title":"Open details","icon":"globe","key":"section-1"}'
  max_lines="6"
></hb-paragraps-around-image-cell>

Title as external link

<hb-paragraps-around-image-cell
  paragraph='{"text":"Short intro text.","title":"Read documentation","icon":"box-arrow-up-right","link":"https://bulma.io/documentation/"}'
  max_lines="4"
></hb-paragraps-around-image-cell>

Body only (no title)

<hb-paragraps-around-image-cell
  paragraph='{"text":"Sidebar note or caption without a heading row.","icon":"info-circle"}'
></hb-paragraps-around-image-cell>

Default clamp (omit max_lines → eight lines)

<hb-paragraps-around-image-cell
  paragraph='{"text":"Long body …","title":"Title","icon":"text-paragraph","key":"block-a"}'
></hb-paragraps-around-image-cell>

Related

  • Parent layout: hb-paragraps-around-image (grid of cells + central image).
  • Package name in metadata: @htmlbricks/hb-paragraps-around-image-cell.