Skip to content

Commit

Permalink
Update dark-mode-toggle.d.ts to reflect new possible value for "apper…
Browse files Browse the repository at this point in the history
…ance"
  • Loading branch information
Haocen authored Oct 5, 2024
1 parent c258ae4 commit c63f722
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dark-mode-toggle.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ export class DarkModeToggle extends HTMLElement {
/**
* The "switch" appearance conveys the idea of a theme switcher (light/dark),
* whereas "toggle" conveys the idea of a dark mode toggle (on/off).
* The "three-way" option will feature a central state that aligns with the user's system preferred color mode, while both the left and right states will consistently apply a fixed color scheme, irrespective of the system settings.
*/
appearance: 'toggle' | 'switch';
appearance: 'toggle' | 'switch' | 'three-way';

/**
* If true, remember the last selected mode ("dark" or "light"),
Expand Down

0 comments on commit c63f722

Please sign in to comment.