File size: 640 Bytes
f09b9f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import * as React from "react";
import { cn } from "../../lib/utils";

export interface CheckboxProps extends React.InputHTMLAttributes<HTMLInputElement> {}

export const Checkbox = React.forwardRef<HTMLInputElement, CheckboxProps>(
  ({ className, ...props }, ref) => {
    return (
      <input

        ref={ref}

        type="checkbox"

        className={cn(

          "h-4 w-4 rounded border border-input bg-background cursor-pointer align-middle",

          className

        )}

        style={{ accentColor: "hsl(var(--primary))" }}

        {...props}

      />
    );
  }
);
Checkbox.displayName = "Checkbox";