Actions / addAttribute

Set an HTML attribute to a value

Aliases: setAttribute

<button @action="addAttribute#disabled" @target="token" class="demo-btn ghost">Lock</button>

<div class="demo-input-group">
  <label for="token">API token</label>

  <input id="token" class="demo-input" type="text" value="sk_live_4eC39HqLyjWDrf">
</div>