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

Commit 4eb7cee

Browse files
Added section on floats to DatNumber readme section
1 parent f531a7a commit 4eb7cee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ A number component for updating numeric values. Will render a slider if `min`, `
177177
* `max: number` - The maximum range for the number
178178
* `step: number` - The amount the number should increment each tick
179179

180+
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.
181+
180182
#### `DatPresets`
181183

182184
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.

0 commit comments

Comments
 (0)