UNPKG

@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.

22 lines (19 loc) 600 B
export type Item = { title: string; subtitle?: string; text: string; /** When set, the card is clickable: dispatches `collectionItemClick` and applies `tab` / `page` navigation; `event` only notifies the host. */ link?: { type: "tab" | "page" | "event"; uri: string }; index?: number; image: string; }; export type Component = { id?: string; style?: string; collection: Item[]; /** Reserved for future layout tuning; column count is derived from viewport width. */ size?: number; }; export type Events = { collectionItemClick: { uri: string; link_type?: "tab" | "page" | "event" }; };