Skip to content
This repository was archived by the owner on May 15, 2022. It is now read-only.

Commit 5c4aa74

Browse files
Merge pull request #1 from rohan-deshpande/feature/support-floats
Feature/support floats
2 parents b6c362c + f042013 commit 5c4aa74

23 files changed

+33193
-25744
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ A number component for updating numeric values. Will render a slider if `min`, `
181181
* `max: number` - The maximum range for the number
182182
* `step: number` - The amount the number should increment each tick
183183

184+
If your `step` prop is a float, `DatNumber` will ensure that your number field steps to the correct number of decimal places to align with the step that you've set.
185+
184186
#### `DatPresets`
185187

186188
Presets for the object which your `DatGui` is controlling can be supplied to this component as items in its `options` prop. A select field will be rendered which will allow you to easily switch between the presets.
@@ -195,7 +197,7 @@ Each item in this array will need to be in the format `{ 'presetName': ...data,
195197

196198
#### `DatSelect`
197199

198-
A select component for updating a value with one of the options supplied via the `options` prop. The original value from the `path` will always be added to the passed options array as the first item.
200+
A select component for updating a value with one of the options supplied via the `options` prop. The initial selected value will be taken from the mapped `path` prop.
199201

200202
##### props
201203

build/react-dat-gui.css

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)