attribute

Definition

function attribute(child: HTMLElement, prop: HTMLAttribute = {}) {
    return HTMLElement
}

Input

  • child : the reference to a valid bolt app, a bolt functional component or a valid bold variable component

  • prop : takes an object of key-pair values of valid HTML attributes

Returns HTMLElement

The child element will be returned after the addition of attributes

Last updated