@htmlbricks/hb-shop-item-row 0.66.8 → 0.66.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
## `hb-shop-item-row` — shop item row
|
|
2
|
+
|
|
3
|
+
**Category:** commerce
|
|
4
|
+
**Tags:** commerce, product
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
Horizontal shop product card: image with optional badge, linked title and metadata, description, star rating scale with numeric rating and reviews link, current and strikethrough prices, and optional footer—all overridable via named slots.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-shop-item-row`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id`, `style` (optional): strings.
|
|
17
|
+
- `img`, `url`, `badge`, `title`, `subtitle`, `text`, `reviews`, `reviewsurl`, `price`, `regularprice`, `footer` (required in types): strings.
|
|
18
|
+
- `rating`, `ratingscale` (required): numbers as strings.
|
|
19
|
+
|
|
20
|
+
### Events
|
|
21
|
+
|
|
22
|
+
None declared.
|
|
23
|
+
|
|
24
|
+
### Usage notes
|
|
25
|
+
|
|
26
|
+
- **Slots:** `badge`, `title`, `subtitle`, `text`, `reviews`, `price`, `footer`, `regularprice`.
|
|
27
|
+
- Storybook exposes `action` for demos only; it is not on the `Component` type.
|
|
28
|
+
|
|
29
|
+
### Minimal HTML example
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<hb-shop-item-row
|
|
33
|
+
img="https://placehold.co/96"
|
|
34
|
+
url="/p/1"
|
|
35
|
+
badge="New"
|
|
36
|
+
title="Product"
|
|
37
|
+
subtitle="Vendor"
|
|
38
|
+
text="One line pitch."
|
|
39
|
+
rating="5"
|
|
40
|
+
ratingscale="5"
|
|
41
|
+
reviews="3"
|
|
42
|
+
reviewsurl="/p/1#reviews"
|
|
43
|
+
price="€9"
|
|
44
|
+
regularprice="€12"
|
|
45
|
+
footer=""
|
|
46
|
+
></hb-shop-item-row>
|
|
47
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-shop-item-row",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Horizontal shop product card: image with optional badge, linked title and metadata, description, star rating scale with numeric rating and reviews link, current and strikethrough prices, and optional footer—all overridable via named slots.",
|
|
6
6
|
"licenses": [
|