You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 15, 2022. It is now read-only.
| liveUpdate | Determines if live updates should occur | boolean | true |
93
93
| labelWidth | The width of the labels in any valid CSS units | string | "40%" |
94
94
| className | The class name to set on the `DatGui` div | string | null |
95
95
| style | The style object to set on the `DatGui` div | object | null |
96
96
97
-
98
97
### Control Components
99
98
100
-
`react-dat-gui` comes with eight built-in control components which can be used by rendering them as direct children of `<DatGui />`.
99
+
`react-dat-gui` comes with eight built-in control components which can be used by rendering them as direct children of `<DatGui />`.
101
100
102
101
- [DatBoolean](#datboolean)
103
102
- [DatButton](#datbutton)
@@ -107,18 +106,18 @@ This is the main container component for your GUI and is the default export from
107
106
- [DatSelect](#datselect)
108
107
- [DatString](#datstring)
109
108
110
-
Custom control components can also be used so long as they implement the required props.
109
+
Custom control components can also be used so long as they implement the required props.
111
110
112
111
#### Common props
113
112
114
-
All child components of `<DatGui />` receive the following props implicitly, these are useful when building custom control components. See the built-in control components in [src/components](src/components) for examples of how to implement your own controls.
113
+
All child components of `<DatGui />` receive the following props implicitly, these are useful when building custom control components. See the built-in control components in [src/components](src/components) for examples of how to implement your own controls.
| data | The data your dat.GUI controller will mutate, the same object from `<DatGui data={data} />| object|
119
-
| labelWidth | The width of the control name label | string|
120
-
| liveUpdate | Determines if live updates should occur | boolean|
121
-
| _onUpdateValue |A callback function for `<DatGui onUpdate={this.onUpdate} />, call this method to update dat.Gui state from your control. | function |
| data | The data your dat.GUI controller will mutate, the same object from `<DatGui data={data} />| object|
118
+
| labelWidth | The width of the control name label | string |
119
+
| liveUpdate | Determines if live updates should occur | boolean |
120
+
|\_onUpdateValue |A callback function for `<DatGui onUpdate={this.onUpdate} />, call this method to update dat.Gui state from your control. | function |
122
121
123
122
Below are docs for the required and optional props you can pass to each built-in control component.
124
123
@@ -248,8 +247,8 @@ Changes to the library code should hot reload in the demo app
| `build` | Builds the library for production into `/dist` |
253
252
| `start` | Starts the library in development mode with hot module reloading |
254
253
| `test` | Runs unit testing suite powered by [Jest](https://github.com/facebook/jest) and [testing-library](https://github.com/testing-library/react-testing-library) |
255
254
| `lint` | Runs linting over entire codebase with `prettier`, `eslint` and `stylelint` |
@@ -258,7 +257,7 @@ Changes to the library code should hot reload in the demo app
258
257
| `fix` | Runs linting over entire codebase with `prettier`, `eslint` and `stylelint` and applies any available automatic fixes |
259
258
| `fix-js` | Lints only javascript files and applies any available automatic fixes |
260
259
| `fix-styles` | Lints only stylesheet files and applies any available automatic fixes |
261
-
260
+
| `deploy` | Compiles and deploys a static build of `/example` next.js app to gh-pages |
0 commit comments