# Alpine.js Documentation - Directives Alpine directives are attributes that you can add to HTML elements to give them special behavior. ## [x-bind](/directives/bind) `x-bind` allows you to set HTML attributes on elements based on the result of JavaScript expressions. For example, here's a component where we will use `x-bind` to set the placeholder value of an input. ```