You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
484 B

  1. import { InputHTMLAttributes } from 'react';
  2. export default function Checkbox({ className = '', ...props }: InputHTMLAttributes<HTMLInputElement>) {
  3. return (
  4. <input
  5. {...props}
  6. type="checkbox"
  7. className={
  8. 'rounded border-secondary-main text-secondary-main shadow-sm ' +
  9. 'focus:ring-0 checked:bg-secondary-main checked:border-secondary-main ' +
  10. className
  11. }
  12. />
  13. );
  14. }