mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 04:27:21 +00:00
adjusted remix example
This commit is contained in:
9
examples/remix/app/components/Check.tsx
Normal file
9
examples/remix/app/components/Check.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
export function Check({ checked = false }: { checked?: boolean }) {
|
||||
return (
|
||||
<div
|
||||
className={`aspect-square w-6 leading-none rounded-full p-px transition-colors cursor-pointer ${checked ? "bg-green-500" : "bg-white/20 hover:bg-white/40"}`}
|
||||
>
|
||||
<input type="checkbox" checked={checked} readOnly />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user