@htmlbricks/hb-vertical-img-txt-archive 0.66.7 → 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 +36 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
## `hb-vertical-img-txt-archive` — vertical-img-txt-archive
|
|
2
|
+
|
|
3
|
+
**Category:** content
|
|
4
|
+
**Tags:** content, archive
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
Vertical archive grid: `collection` items with `title`, `text`, `image`, and `link` (`type`: `tab` | `page` | `event`, `uri`). Optional `subtitle` on items; optional `size` sets column count. CSS parts style `container`, `item`, `image`, `title`, and `text`. Emits `collectionItemClick` with the item `uri` when an entry is activated.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-vertical-img-txt-archive`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` (optional), `style` (optional): strings.
|
|
17
|
+
- `collection` (required): JSON string — `Item[]` (`title`, `text`, `image`, `link`, optional `subtitle`, `index`).
|
|
18
|
+
- `size` (optional): number as string — column count.
|
|
19
|
+
|
|
20
|
+
### Events
|
|
21
|
+
|
|
22
|
+
- `collectionItemClick`: `{ uri: string }`.
|
|
23
|
+
|
|
24
|
+
### Usage notes
|
|
25
|
+
|
|
26
|
+
- **CSS parts:** `container`, `item`, `image`, `title`, `text`.
|
|
27
|
+
- No named content slots in `extra/docs.ts`.
|
|
28
|
+
|
|
29
|
+
### Minimal HTML example
|
|
30
|
+
|
|
31
|
+
```html
|
|
32
|
+
<hb-vertical-img-txt-archive
|
|
33
|
+
collection='[{"title":"One","text":"Body","image":"https://placehold.co/300x200","link":{"type":"tab","uri":"https://example.com"}}]'
|
|
34
|
+
size="3"
|
|
35
|
+
></hb-vertical-img-txt-archive>
|
|
36
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-vertical-img-txt-archive",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Vertical archive grid: `collection` items with `title`, `text`, `image`, and `link` (e.g. `type` + `uri`). Optional `size` sets column count; CSS parts style container, item, image, title, and text. Emits `collectionItemClick` when an item is chosen.",
|
|
6
6
|
"licenses": [
|