Transfer values from light children to host.


Keywords
web components, web component, custom elements, custom element, slot, slots
License
MIT
Install
npm install be-deslotted@0.0.44

Documentation

be-deslotted

Transfer values from light children to host.

Actions Status

How big is this package in your project?

<my-custom-element>
    #shadow
        <slot name=link be-deslotted=href></slot>
    <a slot=link href=//cnn.com>This is CNN</a>
</my-custom-element>

my-custom-element's href property gets set to //cnn.com

Props can be mapped via propMap. [TODO]: Show example.