Sets additional attributes for the tag.
Value | Use |
---|---|
null | prevents the attribute from being added to the tag |
array | adds each item in the array as an attribute & value |
$attr = [
'tabindex' => '0',
'role' => 'button',
'aria-pressed' => 'false'
];
<tag tabindex="0" role="button" aria-pressed="false" {...}