@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A toggle button for switching between light and dark mode.

    Uses the ThemeService from @theredhead/lucid-theme to manage theme state. Renders inline SVG icons — no external icon font required.

    <!-- Icon button (default) -->
    <ui-theme-toggle />

    <!-- Raised button variant -->
    <ui-theme-toggle variant="button" />
    Index

    Constructors

    Properties

    ariaLabel: InputSignal<string> = ...

    Accessible label for the button.

    disabled: InputSignal<boolean> = ...

    Whether the toggle is disabled.

    themeService: ThemeService = ...
    variant: InputSignal<ThemeToggleVariant> = ...

    Visual style of the toggle.

    Methods

    • Toggle the current theme.

      Returns void