Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Allow passing list of props to element props #298

Open
fernandovalera opened this issue Mar 23, 2021 · 0 comments
Open

Allow passing list of props to element props #298

fernandovalera opened this issue Mar 23, 2021 · 0 comments

Comments

@fernandovalera
Copy link

fernandovalera commented Mar 23, 2021

When rendering an element, allow passing a list of props which are merged from into a single table from right to left.

e.g.: { { prop1: 1 }, { prop1: 2, prop2: “hello” } } would resolve to { prop1: 2, prop2: “hello” }

Use case: In addition to custom props, pass in element or component specific theme/context props in one expression instead of many lines.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant