ThemeMenu
A circle that opens system, light or dark, stored as kaeso:theme; its icon shows the theme in use.
<ThemeProvider>
<ThemeMenu />
</ThemeProvider>import { ThemeMenu } from "@logicplanes/kaeso-ui";Props
align"start" | "end" = endWhich 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" = menuOne 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" = bottomWhere the menu opens: below the button (
bottom), or above it (top) when the button sits at the foot of a sidebar.size"md" | "sm" = smThe button's or the track's height.
variant"secondary" | "ghost" = ghostA filled button (
secondary) or a quiet one (ghost).