arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

use-attributes

capture all attributes that are defined in the webcomponent but are not props

hashtag
Syntax

const attrs = useAttributes();

Where:

  1. attrs: all the attributes defined on the webcomponent but that are not props, to facilitate reading this hook transforms the index to camelCase

hashtag
Example

WebComponents.devWebComponents.devchevron-right
Logo