environment-agency-austria / react-ocean-forms-bootstrap

Bootstrap rendering adapter for react-ocean-forms (using reactstrap)
MIT License
1 stars 0 forks source link

Input: supported html types #75

Open dinony opened 5 years ago

dinony commented 5 years ago

Hi,

In the docs the type attribute is claimed to allow:

HTML5 input type of the input element.

In a form I have to use radio buttons (type="radio"), but I think it is not supported?

maschino commented 5 years ago

You're right - type radio (and type checkbox) are currently not supported. For simple binary inputs you could use OnOffToggleButton instead.

Could you explain your use case? Maybe we can add a component to satisfy it.

dinony commented 5 years ago

The use case is to use radio buttons. For now the analyst agreed on to use select. So, this is not an immediate feature request. At least the docs could be updated and the type prop could be type safer. Thanks!