Skip to content

Create a way to handle attributes in the configs #1954

Closed
@Derranion

Description

@Derranion
  • Create a way to manage attributes in the configs

Describe the solution you'd like

Currently we handle only props inside of the components config.

We think that adding a way to add attributes there could be helpful for components reuse.

Here is the new Presets feature for all of the components - this could be one of the entry points to add attributes.

One of the possible structures may look this way:

components: {
   ...
   presets: {
     VaInput: {
       'prime': { attrs: { class: 'highlight-text' }, color: 'primary', },
   }
   ...
}

Metadata

Metadata

Assignees

Labels

d4: hardFast monsters, respawning turrets, templars, reavers, crusaders, and inquisitorsfeatureSomething useful to end userv1: minorThis might be helpful, but not really

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions