import * as React from "react"; import { ChevronDownIcon } from "lucide-react"; import { useIsDark } from "../hooks/use-is-dark"; import { cn } from "../lib/utils"; function NativeSelect({ className, size = "default", style, ...props }: Omit, "size"> & { size?: "sm" | "default" }) { const isDark = useIsDark(); return (
{/* The native option popup follows the select's opaque background and color-scheme, not option-level styles. Give it a solid themed surface and pin color-scheme so options stay readable in dark mode, which is driven by prefers-color-scheme (no .dark class in this app). */} {/* oxlint-disable-next-line react/forbid-elements */}