Migrate tensamin/ui to methanium/ui
All checks were successful
/ package (push) Successful in 57s

This commit is contained in:
Alois 2026-07-25 13:09:54 +02:00
commit 7bc6d002a9
Signed by: alois
SSH key fingerprint: SHA256:GBzT2DXvAuGV9XIV5W3WrzVpjU54FThmxHXdbz95J24
90 changed files with 13401 additions and 1 deletions

View file

@ -0,0 +1,38 @@
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "../../cmp/select";
import type { ThemePolarity } from "../types";
import { useTheme } from "../ThemeProvider";
export function PolarityPicker() {
const { themePolarity, setThemePolarity } = useTheme();
return (
<label className="flex flex-col gap-2 text-sm font-medium">
Color scheme
<Select
value={themePolarity}
onValueChange={(value) => setThemePolarity(value as ThemePolarity)}
>
<SelectTrigger className="w-65">
<SelectValue>
{themePolarity === "system"
? "System"
: themePolarity === "dark"
? "Dark"
: "Light"}
</SelectValue>
</SelectTrigger>
<SelectContent>
<SelectItem value="system">System</SelectItem>
<SelectItem value="dark">Dark</SelectItem>
<SelectItem value="light">Light</SelectItem>
</SelectContent>
</Select>
</label>
);
}