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
-**🍞 Easy:** Easy use with minimal required properties.
15
+
-**🍤 Tiny:** Small footprint < 4kb which makes your apps faster to load.
16
+
-**✅ Accessible:** ARIA attributes in the component which makes it very accessible.
17
+
12
18
## Getting Started
13
19
### Installation
14
20
#### Installing the package
@@ -51,6 +57,30 @@ export default {
51
57
| fontWeight |`Boolean`|`normal`| ❌ | Sets the font weight of the text next to the toggle. |
52
58
| toggled |`Boolean`|`true`| ❌ | Sets the default value for the toggler. |
53
59
60
+
#### Events
61
+
When you toggle the component the component emits the `toggle` event. You can use the event using the example below. The value in the event is the whether the toggler is toggled or not.
-**🍞 Easy:** Easy use with minimal required properties.
15
+
-**🍤 Tiny:** Small footprint < 4kb which makes your apps faster to load.
16
+
-**✅ Accessible:** ARIA attributes in the component which makes it very accessible.
17
+
12
18
## Getting Started
13
19
### Installation
14
20
#### Installing the package
@@ -48,9 +54,33 @@ export default {
48
54
| darkTheme |`Boolean`|`false`| ❌ | Set's dark mode to active. (note that this will not change the background like in the preview GIF) |
49
55
| disabled |`Number`|`false`| ❌ | Disables the toggler. |
50
56
| fontSize |`String`|`16`| ❌ | Sets the font size of the text next to the toggle |
51
-
| fontWeight |`Boolean`|`bold`| ❌ | Sets the font weight of the text next to the toggle. |
57
+
| fontWeight |`Boolean`|`normal`| ❌ | Sets the font weight of the text next to the toggle. |
52
58
| toggled |`Boolean`|`true`| ❌ | Sets the default value for the toggler. |
53
59
60
+
#### Events
61
+
When you toggle the component the component emits the `toggle` event. You can use the event using the example below. The value in the event is the whether the toggler is toggled or not.
0 commit comments