@htmlbricks/hb-bundle
Version:
Single IIFE loader for all HTML Bricks hb-* web components from the jsDelivr CDN, with optional Subresource Integrity; includes agent/LLM docs and theme CSS variables.
21 lines (18 loc) • 561 B
TypeScript
export type FaqInfoItem = { topic?: string; title: string; text: string };
export type FaqTopicChip = {
key: string;
label: string;
icon: string;
catchAll?: boolean;
index?: number;
};
export type Component = {
id?: string;
style?: string;
/** From HTML this is a JSON string; `$effect` parses it into `FaqInfoItem[]`. */
info?: string | FaqInfoItem[];
/** From HTML this is a JSON string; `$effect` parses it into `FaqTopicChip[]` and assigns `index`. */
topics?: string | FaqTopicChip[];
filter?: string;
};
export type Events = {};