use-attributes
capture all attributes that are defined in the webcomponent but are not props
Last updated
Was this helpful?
capture all attributes that are defined in the webcomponent but are not props
const attrs = useAttributes();Where:
attrs: all the attributes defined on the webcomponent but that are not props, to facilitate reading this hook transforms the index to camelCase
Last updated
Was this helpful?
Was this helpful?
