@htmlbricks/hb-paragraps-around-image-cell 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 +37 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## `hb-paragraps-around-image-cell` — paragraph cell around image
|
|
2
|
+
|
|
3
|
+
**Category:** content
|
|
4
|
+
**Tags:** content
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
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 `hb-paragraps-around-image` layouts.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-paragraps-around-image-cell`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id`, `style` (optional): strings.
|
|
17
|
+
- `paragraph` (required): JSON string — `{ text; title?; icon?; link?; key? }`.
|
|
18
|
+
- `max_lines` (optional): number as string — line clamp for body text.
|
|
19
|
+
|
|
20
|
+
### Events
|
|
21
|
+
|
|
22
|
+
- `paragraphPressed`: `{ key: string }`.
|
|
23
|
+
|
|
24
|
+
### Usage notes
|
|
25
|
+
|
|
26
|
+
- **Slots:** `skelcontent`.
|
|
27
|
+
- **CSS parts:** `testpart`.
|
|
28
|
+
- Typically embedded by `hb-paragraps-around-image`; usable alone for Storybook-style tiles (no separate image prop on this cell).
|
|
29
|
+
|
|
30
|
+
### Minimal HTML example
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<hb-paragraps-around-image-cell
|
|
34
|
+
paragraph='{"text":"Body copy","title":"Read more","icon":"globe","key":"section-1"}'
|
|
35
|
+
max_lines="4"
|
|
36
|
+
></hb-paragraps-around-image-cell>
|
|
37
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-paragraps-around-image-cell",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "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.",
|
|
6
6
|
"licenses": [
|