use attributes in bricks content and settings

i have buttons with specific data-attributes but i want to set the content and or settings according to the attribute

as example
div element:

  • data-attribute: data-color = #3425ff
  • settings: background-color = {data-attribute:color}

is this possible?