@htmlbricks/hb-paragraps-around-image
v0.70.0
Published
Editorial block with a central image and up to six text blocks in two side columns using hb-paragraps-around-image-cell (indices 0,2,4 left; 1,3,5 right). Parses paragraphs from JSON and bubbles paragraphPressed when a cell fires it.
Readme
hb-paragraps-around-image — paragraphs around image
Category: content
Tags: content
What it does
Editorial block with a central image and up to six text blocks in two side columns using hb-paragraps-around-image-cell (indices 0, 2, 4 left; 1, 3, 5 right). Parses paragraphs from JSON and bubbles paragraphPressed when a cell fires it.
Custom element
hb-paragraps-around-image
Attributes (snake_case; use string values in HTML)
id,style(optional): strings.img(required): string — image URL.paragraphs(required): JSON string — array of{ text; title?; icon?; link?; key? }.
Events
paragraphPressed:{ key: string }.
Usage notes
- Slots:
skelcontent. - CSS parts:
testpart. - Up to six paragraph objects; layout alternates columns per index.
Minimal HTML example
<hb-paragraps-around-image
img="https://placehold.co/300x200"
paragraphs='[{"text":"Hello body","title":"Title","icon":"globe","link":"https://example.com"}]'
></hb-paragraps-around-image>