claus / react-dat-gui

React dat.GUI
MIT License
292 stars 56 forks source link

labelWidth doesn't affect DatBoolean e.g. checkbox label width #30

Closed campbellgoe closed 5 years ago

campbellgoe commented 5 years ago

labelWidth doesn't affect DatBoolean e.g. checkbox label width, it remains at 40% width default. This is the component which could use labelWidth the most.

tim-soft commented 5 years ago

Fix is in https://github.com/claus/react-dat-gui/pull/33

Which would let you do something like this:

<DatGUI labelWidth="40%">
    <DatBoolean labelWidth="200px" />
</DatGUI>