ThemeMenu

A circle that opens system, light or dark, stored as kaeso:theme; its icon shows the theme in use.

View source
import { ThemeMenu } from "@logicplanes/kaeso-ui";

Props

  • align
    "start" | "end" = end

    Which edge of the button the menu lines up with: its end (end) or its start (start), for a button at the left edge.

  • display
    "menu" | "segmented" = menu

    One circle that opens the choices (menu), or the three choices side by side as icons with the current one raised (segmented), for the foot of a sidebar where one tap changes the theme.

  • side
    "top" | "bottom" = bottom

    Where the menu opens: below the button (bottom), or above it (top) when the button sits at the foot of a sidebar.

  • size
    "md" | "sm" = sm

    The button's or the track's height.

  • variant
    "secondary" | "ghost" = ghost

    A filled button (secondary) or a quiet one (ghost).