myitcv / x

Mono-repo for all myitcv.io/... Go code
MIT License
103 stars 20 forks source link

InputProps doesn't support range #70

Closed pjebs closed 5 years ago

pjebs commented 5 years ago

The props field doesn't support items such as min/max/step.

SEE: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range

Is there a way to implement a "backup" "escape hatch", which leaves the ability to strong type as the feature gets added?

pjebs commented 5 years ago

Can you provide an example on how to use CreateElement. I guess that is the "escape hatch".

myitcv commented 5 years ago

myitcv.io/react should be versioned according to the HTML spec it is targeting.

On the basis the "current" version is aiming to support HTML 5.x, we should simply add this along with any other missing attributes.

Perhaps, much like https://github.com/myitcv/x/issues/61, we should provide an element attribute escape hatch.

At least in the case of element attributes we have a well defined process for adding them: https://github.com/myitcv/x/blob/master/react/cmd/coreGen/elements.go#L278-L284

pjebs commented 5 years ago

Closing because I created my own bindings: https://github.com/rocketlaunchr/react/