@htmlbricks/hb-faq-component 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 +37 -0
- package/manifest.json +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## `hb-faq-component` — faq-component
|
|
2
|
+
|
|
3
|
+
**Category:** content
|
|
4
|
+
**Tags:** content
|
|
5
|
+
|
|
6
|
+
### What it does
|
|
7
|
+
|
|
8
|
+
FAQ layout with a horizontal topic strip (Bootstrap Icons + labels) that sets an optional `filter` key, and an accordion list built from JSON `info` entries (`title`, `topic`, HTML `text`). Checkbox hack expands/collapses answers; topics with `catchAll` clear the filter.
|
|
9
|
+
|
|
10
|
+
### Custom element
|
|
11
|
+
|
|
12
|
+
`hb-faq-component`
|
|
13
|
+
|
|
14
|
+
### Attributes (snake_case; use string values in HTML)
|
|
15
|
+
|
|
16
|
+
- `id` — optional string
|
|
17
|
+
- `style` — optional string
|
|
18
|
+
- `info` — optional string (JSON array of `{ topic?, title, text }`; `text` may contain HTML)
|
|
19
|
+
- `topics` — optional string (JSON array of `{ key, label, icon, catchAll?, index? }`)
|
|
20
|
+
- `filter` — optional string (active topic key)
|
|
21
|
+
|
|
22
|
+
### Events
|
|
23
|
+
|
|
24
|
+
None declared on the component type.
|
|
25
|
+
|
|
26
|
+
### Usage notes
|
|
27
|
+
|
|
28
|
+
Drive content via `info` and `topics` as JSON strings. Icon names use Bootstrap Icons.
|
|
29
|
+
|
|
30
|
+
### Minimal HTML example
|
|
31
|
+
|
|
32
|
+
```html
|
|
33
|
+
<hb-faq-component
|
|
34
|
+
topics="[{"key":"general","label":"General","icon":"question-circle"}]"
|
|
35
|
+
info="[{"topic":"general","title":"First question","text":"<p>Answer here.</p>"}]"
|
|
36
|
+
></hb-faq-component>
|
|
37
|
+
```
|
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-faq-component",
|
|
3
|
-
"version": "0.66.
|
|
3
|
+
"version": "0.66.9",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "FAQ layout with a horizontal topic strip (Bootstrap Icons + labels) that sets an optional `filter` key, and an accordion list built from JSON `info` entries (`title`, `topic`, HTML `text`). Checkbox hack expands/collapses answers; topics with `catchAll` clear the filter.",
|
|
6
6
|
"licenses": [
|