@htmlbricks/hb-shop-item-cell
v0.71.16
Published
Vertical shop product card: top image with optional badge, then the same body as shop-item-row (title, subtitle, text, stars, reviews, prices, footer) with Bootstrap card styling and matching slots.
Readme
hb-shop-item-cell — shop item cell
Category: commerce
Tags: commerce, product
What it does
Vertical shop product card: top image with optional badge, then the same body as hb-shop-item-row (title, subtitle, text, stars, reviews, prices, footer) with Bulma card, tag, title / subtitle, and matching slots.
Custom element
hb-shop-item-cell
Attributes (snake_case; use string values in HTML)
id,style(optional): strings.img,url,badge,title,subtitle,text,reviews,reviewsurl,price,regularprice,footer(required in types): strings (use""when empty).rating,ratingscale(required): numbers as strings.
Events
None declared.
Styling (Bulma)
Bundles Bulma 1.x (card, image, content, title, tag, helpers). Set --bulma-* on the light DOM to match your theme. Star icons still use Bootstrap Icons SVG class names in markup (no icon font required for the default stars).
Usage notes
- Slots:
badge,title,subtitle,text,reviews,price,footer,regularprice. - Mirror
hb-shop-item-rowcontent model for consistent catalog UI.
Minimal HTML example
<hb-shop-item-cell
img="https://placehold.co/120"
url="/p/1"
badge=""
title="Product"
subtitle="Short line"
text="Description"
rating="4"
ratingscale="5"
reviews="12 reviews"
reviewsurl="/p/1#reviews"
price="€19"
regularprice=""
footer=""
></hb-shop-item-cell>