Skip to content

setProperties on componenets #112

@gluax

Description

@gluax

When creating a component it would be a nice feature to be able to set any other properties that we might want.
For example,

const windowProps = {WA_TranslucentBackground: true};
<Window setProperties={windowProps}>
...
</Window>

or any of the other widgetAttributes.

That way we can always pass all the attributes we want to set at once, and you don't have to make a property on the component for every possible attribute.

Edit: Might actually be better to name it setAttributes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions