Skip to content

Commit 9cb197c

Browse files
committed
Renamed prop customClass to class
1 parent 6208b12 commit 9cb197c

File tree

7 files changed

+102
-89
lines changed

7 files changed

+102
-89
lines changed

README.md

+12-10
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ npm install --save svelte-number-spinner
2525

2626
## Props
2727

28-
| Prop | Type | Default | Description |
29-
| -------------- | ------- | ----------- | ------------------------ |
30-
| value | Number | 0 | Input value |
31-
| min | Number | -MAX_VALUE | Minimum value |
32-
| max | Number | +MAX_VALUE | Maximum value |
33-
| step | Number | 1 | Step |
34-
| decimals | Number | 0 | Number of decimals |
35-
| width | Number | 60 | Width of the component |
36-
| height | Number | 25 | Height of the component |
37-
| customClass | String | undefined | Custom component class |
28+
| Prop | Type | Default | Description |
29+
| -------------- | ------- | ----------- | ---------------------------- |
30+
| value | Number | 0 | Input value |
31+
| min | Number | -MAX_VALUE | Minimum value |
32+
| max | Number | +MAX_VALUE | Maximum value |
33+
| step | Number | 1 | Step |
34+
| decimals | Number | 0 | Number of decimals |
35+
| width | Number | 60 | Width of the component |
36+
| height | Number | 25 | Height of the component |
37+
| class | String | undefined | Custom component class name |
3838

3939
<br />
4040

@@ -45,6 +45,8 @@ npm install --save svelte-number-spinner
4545
| input | (ev) => ev.detail | Fires when value changes |
4646
| change | (ev) => ev.detail | Fires when value changes, won't fire while typing |
4747

48+
In most cases you will probably use ```bind:value``` to react to changes of the value. This is more or less the same as listening to the change event. Use the input event if you need to get the changes while the user is typing.
49+
4850
```html
4951
<script>
5052
import NumberSpinner from "svelte-number-spinner";

example/public/build/bundle.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/public/build/bundle.css.map

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)