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.

31 lines (28 loc) 1.01 kB
import type { INavLink } from "../sidenav-link/webcomponent.type"; import type { I18nLanguageOption, ThemePreference, } from "../sidebar-desktop/webcomponent.type"; export type Component = { id?: string; style?: string; opened?: boolean; navlinks?: INavLink[]; navpage?: string; groups?: { key: string; label: string }[]; companylogouri?: string; companytitle?: string; /** Passed through to hb-sidebar-desktop (`yes` shows footer chrome and slot). */ enablefooter?: boolean | "yes" | "no" | "false" | null | "" | undefined; enablethemeswitch?: "yes" | "no" | null | "" | undefined; themepreference?: ThemePreference | null | "" | undefined; i18nlang?: string | null | "" | undefined; i18nlanguages?: I18nLanguageOption[] | string | null | "" | undefined; type?: "open" | "autohide" | "small"; }; export type Events = { offcanvasswitch: { isOpen: boolean }; pageChange: { page: string }; languageChange: { code: string }; themeChange: { mode: ThemePreference }; };