c8r / kit

Tools for developing, documenting, and testing React component libraries

Home Page:https://compositor.io/kit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PropsForm.Select transforms booleans into strings

alexcanessa opened this issue · comments

Passing a boolean as an option resolves into:

{
  [propertyName]: "true" | "false"
}

It would be nice to have it translate into boolean when "true" or "false".

Alternatively, a solution could be to have a PropsForm.Checkbox.

Great idea, Props.Checkbox added in #202.