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
| style | React.CSSProperties || CSS properties object applied to the button wrapper. |
84
+
| size | number \| string | 24 | SVG size. |
85
+
| animationProperties | Partial animation properties object | defaultProperties \(see below\)| Override only the fields you want; missing fields are merged with defaults. |
86
+
| moonColor | string | white | Color of the moon. |
87
+
| sunColor | string | black | Color of the sun. |
88
+
| aria-label | string | Toggle dark mode | Accessible label for the control. Ignored when `aria-labelledby` is provided. |
89
+
| aria-labelledby | string || Links the control to an external label element. |
90
+
| onClick |\(event: React.MouseEvent<HTMLButtonElement>\)=>void || Optional button click handler. Call `event.preventDefault()` to prevent toggling on click. |
91
+
92
+
All valid button attributes (except `children`) are forwarded to the underlying button element.
0 commit comments