@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
tsx 30 lines 742 Bytes
Raw
1 import type { ComponentProps } from "react";
2
3 import { cn } from "../../lib/utils";
4
5 export function SettingsGroup({
6 variant = "grouped",
7 divided = true,
8 className,
9 ...props
10 }: ComponentProps<"div"> & {
11 variant?: "grouped" | "plain";
12 divided?: boolean;
13 }) {
14 return (
15 <div
16 data-slot="settings-group"
17 {...props}
18 className={cn(
19 "relative overflow-visible text-foreground",
20 variant === "grouped"
21 ? "rounded-xl border border-border/60 bg-card/40 shadow-xs/5"
22 : "space-y-1",
23 variant === "grouped" &&
24 divided &&
25 "*:not-first:border-t *:not-first:border-border/50 [&>[data-slot=settings-row]]:rounded-none",
26 className,
27 )}
28 />
29 );
30 }