andrewhathaway / Winterfell

Generate complex, validated and extendable JSON-based forms in React.
http://winterfell.andrewhathaway.net
MIT License
785 stars 116 forks source link

how to pass settings to a custom component #101

Closed wiredots01 closed 7 years ago

wiredots01 commented 7 years ago

How can i pass a additional settings to a custom component and access it via props ?

andrewhathaway commented 7 years ago

Hi @wiredots01!

You'll see in the file linked below, an input has props key you can use to pass down an object to a custom/any component!

https://github.com/andrewhathaway/Winterfell/blob/master/src/question.js#L141

Thanks!