perfect-gui 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -42,7 +42,7 @@ For a quick setup without build tools, use an import map:
42
42
  import GUI from 'perfect-gui';
43
43
 
44
44
  const gui = new GUI();
45
- gui.button('Click me!', () => alert('Hello world!'));
45
+ gui.button({ label: 'Click me' }).onClick(() => alert('Hello world!'));
46
46
  </script>
47
47
  ```
48
48
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "perfect-gui",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "5.0.1",
5
5
  "description": "GUI for JavaScript",
6
6
  "main": "dist/perfect-gui.js",
7
7
  "module": "dist/perfect-gui.js",