Skip to content

Commit 8814916

Browse files
committed
fix changes
1 parent cda5184 commit 8814916

File tree

4 files changed

+22
-48
lines changed

4 files changed

+22
-48
lines changed

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,28 @@ The switch is {checkedValue ? 'on' : 'off'}.
4545

4646
### Props
4747

48-
| Prop Name | Description | Default Value |
49-
| --------------------- | ---------------------------------------------------------------------------------------- | ------------- |
50-
| accept | Set accepted file types. See https://github.com/okonet/attr-accept for more information. | undefined |
51-
| disabled | | false |
52-
| maxSize | | Infinity |
53-
| minSize | | 0 |
54-
| multiple | if true, multiple files can be selected at once | true |
55-
| preventDropOnDocument | 1231 | true |
56-
| noClick | disable click events | false |
57-
| noKeyboard | disable keyboard events | false |
58-
| noDrag | disable drag events | false |
59-
| containerClasses | custom container classes | "" |
60-
| containerStyles | custom inline container styles | "" |
61-
| disableDefaultStyles | don't apply default styles to container | false |
48+
| Prop Name | Description | Default Value |
49+
| --------------- | -------------- | ------------------ |
50+
| checked | Required field | undefined |
51+
| disabled | | false |
52+
| offColor | | "#888" |
53+
| onColor | | "#080" |
54+
| offHandleColor | | "#fff" |
55+
| onHandleColor | | "#fff" |
56+
| handleDiameter | | 0 |
57+
| boxShadow | | null |
58+
| activeBoxShadow | | "0 0 2px 3px #3bf" |
59+
| height | | 28 |
60+
| width | | 56 |
61+
| id | | '' |
62+
| containerClass | | '' |
63+
64+
### Slots
65+
66+
| Slot Name | Description | Default Set? |
67+
| ------------- | ----------- | ------------ |
68+
| checkedIcon | | Yes |
69+
| unCheckedIcon | | Yes |
6270

6371
### Events
6472

TODO

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/components/Switch.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
88
//props
99
export let checked;
10-
export let onChange;
1110
export let disabled = false;
1211
export let offColor = "#888";
1312
export let onColor = "#080";

stories/views/BasicDropzoneAcceptImagesView.svelte

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)