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

Function DumpCheckbox

apps/start/src/components/ui/checkbox.tsx:6–19  ·  view source on GitHub ↗
({ checked }: { checked: boolean })

Source from the content-addressed store, hash-verified

4import * as React from 'react';
5
6export const DumpCheckbox = ({ checked }: { checked: boolean }) => {
7 return (
8 <div
9 className={cn(
10 'block h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50',
11 checked && 'bg-primary text-primary-foreground',
12 )}
13 >
14 <div className="flex items-center justify-center text-current">
15 {checked && <Check className="h-4 w-4" />}
16 </div>
17 </div>
18 );
19};
20
21const Checkbox = React.forwardRef<
22 React.ElementRef<typeof CheckboxPrimitive.Root>,

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected