Which module will you add it? Beaver Builder document site is nicely described how you will add the attributes into the modules. They shared the lot of methods.
I have one tutorial which is adding the attributes option into the settings form. So you can easily add the any attributes via module, columns or row settings form. Unfortunately that tutorial is in under pay wall.