Skip to content
@ng-doc/app / Class

NgDocThemeToggleComponent

Button that switches the theme in turn: Auto (follows the system), Light and Dark.

It shows the current theme and follows theme changes made elsewhere through the theme service.

Decorators
@Component
Selectors
ng-doc-theme-toggle
DeclarationTypeScript
@Component({ … })
export class NgDocThemeToggleComponent { … }

Members

Properties

3
currentTheme: Signal<ToggleTheme>
protectedreadonly

The current theme. A custom theme id counts as Auto, because the toggle does not offer it.

nextTheme: Signal<ToggleTheme>
protectedreadonly

The theme the next press switches to.

themeService: NgDocThemeService
protectedreadonly
—

Methods

1
(): void

Switches to the next theme.

Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-theme-toggle
Scope
@ng-doc/app
Edit this page