Files
asm-dashboard/resources/js/Components/Checkbox.tsx
2024-11-09 15:55:56 +01:00

18 lines
414 B
TypeScript

import { InputHTMLAttributes } from 'react';
export default function Checkbox({
className = '',
...props
}: InputHTMLAttributes<HTMLInputElement>) {
return (
<input
{...props}
type="checkbox"
className={
'rounded border-gray-300 text-indigo-600 shadow-sm focus:ring-indigo-500 ' +
className
}
/>
);
}