MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / ColorSquare

Function ColorSquare

apps/start/src/components/color-square.tsx:6–18  ·  view source on GitHub ↗
({ children, className, color }: ColorSquareProps)

Source from the content-addressed store, hash-verified

4type ColorSquareProps = HtmlProps<HTMLDivElement>;
5
6export function ColorSquare({ children, className, color }: ColorSquareProps) {
7 return (
8 <div
9 className={cn(
10 'flex h-5 w-5 flex-shrink-0 items-center justify-center rounded bg-blue-600 text-sm font-medium text-white [.mini_&]:h-4 [.mini_&]:w-4 [.mini_&]:text-[0.6rem] font-mono',
11 className,
12 )}
13 style={{ backgroundColor: color }}
14 >
15 {children}
16 </div>
17 );
18}

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected