Const
Lit directive for applying rest/spread props to DOM elements.
This directive efficiently applies an object of properties and attributes to a DOM element, handling the differences between properties and attributes automatically.
const props = { className: 'my-class', disabled: true };<div {...__$rest(props)}>Content</div> Copy
const props = { className: 'my-class', disabled: true };<div {...__$rest(props)}>Content</div>
Lit directive for applying rest/spread props to DOM elements.
This directive efficiently applies an object of properties and attributes to a DOM element, handling the differences between properties and attributes automatically.