JSPM

be-hive

0.0.22
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 194
  • Score
    100M100P100Q103184F
  • License MIT

Specify that ShadowDOM should inherit be-haviors from parent Shadow DOM

Package Exports

  • be-hive
  • be-hive/be-hive.js
  • be-hive/register.js

Readme

be-hive

Let it snow in August

be-hive is the Queen Bee of the may-it-be HTML frimework.

Specify that ShadowDOM should inherit be-hiviors from parent Shadow DOM.

Allow judicious overriding of if-wants-to-be's.

Syntax

be-hiviors are registered via function:

register(ifWantsToBe: string, upgrade: string, extTagName: string);

in be-hive/register.js

be-hive then determines which be-hiviors to inherit.

However, be-hive supports an optional "overrides" attribute/property that allows overriding the parent inheritance.

To uses be-hiviors in this way, we need to include one instance of be-hive in our ShadowDOM-based web component.

<be-hive overrides='{
    "be-sharing":{
        "ifWantsToBe": "familial"
    }
}'></be-hive>

[TODO] Expline this coherently.